Files
web2.0-backend/Dockerfile
T
2021-04-14 17:20:15 +03:00

19 lines
437 B
Docker

FROM python:3.9-slim
ENV PYTHONUNBUFFERED 1
WORKDIR /app
COPY . ./
ENV POETRY_VERSION=1.1.4
RUN apt-get update && apt-get install --no-install-recommends -y build-essential
RUN pip install -U pip
RUN pip install "poetry==$POETRY_VERSION"
RUN poetry config virtualenvs.create false \
&& poetry install --no-dev --no-interaction --no-ansi
RUN python manage.py collectstatic --noinput
CMD ["sh", "-c", "./production_entrypoint.sh"]