From 93d536bdba21f52da4946ca49d026446d7e475d6 Mon Sep 17 00:00:00 2001 From: Untone Date: Sat, 17 Feb 2024 13:21:52 +0300 Subject: [PATCH] dockerfile-fix --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4dfa41db..ac61f8f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,15 @@ -FROM python:slim +FROM python:alpine3.18 WORKDIR /app COPY . /app -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 && \ +RUN apk update && apk add --no-cache git gcc curl postgresql-client + +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 +CMD ["python", "server.py"]