Skip to content
Snippets Groups Projects
Dockerfile 381 B
Newer Older
  • Learn to ignore specific revisions
  • tuhe's avatar
    tuhe committed
    # syntax=docker/dockerfile:1
    
    FROM python:3.8-slim-buster
    
    RUN apt-get -y update
    RUN apt-get -y install git
    
    
    tuhe's avatar
    tuhe committed
    WORKDIR /home
    
    tuhe's avatar
    tuhe committed
    
    # Remember to include requirements.
    COPY requirements.txt requirements.txt
    RUN pip3 install -r requirements.txt
    
    # Not required.
    # RUN pip install git+https://git@gitlab.compute.dtu.dk/tuhe/unitgrade.git
    
    COPY . .
    
    
    tuhe's avatar
    tuhe committed
    ADD . /home
    
    tuhe's avatar
    tuhe committed
    
    # CMD [ "python3", "app.py"]