DOCKERFILE 361 B

12345678910111213141516171819
  1. FROM ubuntu:20.04
  2. MAINTANER Torsten Simon "simon@edu-sharing.net"
  3. RUN apt-get update -y && \
  4. apt-get install -y python-pip python-dev
  5. # We copy just the requirements.txt first to leverage Docker cache
  6. COPY ./requirements.txt /app/requirements.txt
  7. WORKDIR /app
  8. RUN pip install -r requirements.txt
  9. COPY . /app
  10. ENTRYPOINT [ "python" ]
  11. CMD [ "main.py" ]