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