From 47ecf4bd1a657e727d992c0373396e06a6ea8475 Mon Sep 17 00:00:00 2001 From: Untone Date: Sat, 17 Feb 2024 13:25:24 +0300 Subject: [PATCH] dockerfile-fix --- Dockerfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index ac61f8f7..05c855d8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,13 +3,10 @@ WORKDIR /app COPY . /app RUN apk update && apk add --no-cache git gcc curl postgresql-client +RUN curl -sSL https://install.python-poetry.org | python +ENV PATH="${PATH}:/root/.local/bin" +RUN poetry config virtualenvs.create false && poetry install --no-dev -RUN curl -sSL https://install.python-poetry.org | python - && \ - poetry config virtualenvs.create false && \ - poetry install --no-dev - -# Expose port 8000 EXPOSE 8000 -# Run server when the container launches CMD ["python", "server.py"]