From d963ed714ca83c1731abf5f9c63c9d02d1dcbfc7 Mon Sep 17 00:00:00 2001 From: Untone Date: Sat, 17 Feb 2024 14:03:33 +0300 Subject: [PATCH] stay-ubuntu --- Dockerfile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 05c855d..4dfa41d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,15 @@ -FROM python:alpine3.18 +FROM python:slim 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 apt-get update && apt-get install -y git gcc curl postgresql && \ + curl -sSL https://install.python-poetry.org | python - && \ + echo "export PATH=$PATH:/root/.local/bin" >> ~/.bashrc && \ + . ~/.bashrc && \ + poetry config virtualenvs.create false && \ + poetry install --no-dev EXPOSE 8000 -CMD ["python", "server.py"] +# Run server when the container launches +CMD python server.py