From aa5709c69508c317f15843ac14e26c988ad4478a Mon Sep 17 00:00:00 2001 From: Tony Rewin Date: Fri, 6 Oct 2023 03:56:27 +0300 Subject: [PATCH] fix-reqs2 --- Dockerfile | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/Dockerfile b/Dockerfile index bdb4041e..73fef91b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,10 @@ FROM python:slim - -ENV PYTHONDONTWRITEBYTECODE 1 -ENV PYTHONUNBUFFERED 1 -ENV GIT_SSH_COMMAND "ssh -v" WORKDIR /app -RUN apt-get update && apt-get install -y git build-essential -RUN pip install poetry -# Copy only requirements to cache them in docker layer -COPY pyproject.toml poetry.lock /app/ - -# Project initialization: -RUN poetry config virtualenvs.create false \ - && poetry install --no-interaction --no-ansi - -# Copy project files into the docker image -COPY . /app +EXPOSE 8080 +# ADD nginx.conf.sigil ./ +COPY requirements.txt . +RUN apt update && apt install -y build-essential git +ENV GIT_SSH_COMMAND "ssh -v" +RUN pip install -r requirements.txt +COPY . .