dockerfile-fix
Some checks failed
Deploy to core / deploy (push) Failing after 30s

This commit is contained in:
Untone 2024-02-17 13:21:52 +03:00
parent 8a4e4ce6d5
commit 93d536bdba

View File

@ -1,15 +1,15 @@
FROM python:slim FROM python:alpine3.18
WORKDIR /app WORKDIR /app
COPY . /app COPY . /app
RUN apt-get update && apt-get install -y git gcc curl postgresql && \ RUN apk update && apk add --no-cache git gcc curl postgresql-client
curl -sSL https://install.python-poetry.org | python - && \
echo "export PATH=$PATH:/root/.local/bin" >> ~/.bashrc && \ RUN curl -sSL https://install.python-poetry.org | python - && \
. ~/.bashrc && \
poetry config virtualenvs.create false && \ poetry config virtualenvs.create false && \
poetry install --no-dev poetry install --no-dev
# Expose port 8000
EXPOSE 8000 EXPOSE 8000
# Run server when the container launches # Run server when the container launches
CMD python server.py CMD ["python", "server.py"]