Dockerfile 294 B

1234567891011121314
  1. FROM python:3.8.4-slim-buster
  2. ENV PYTHONUNBUFFERED 1
  3. WORKDIR /app
  4. # We copy just the requirements.txt first to leverage Docker cache
  5. COPY ./requirements.txt /app/requirements.txt
  6. RUN pip install -r requirements.txt
  7. COPY . /app
  8. RUN chmod +x entrypoint.sh
  9. ENTRYPOINT ["sh", "entrypoint.sh"]