stay-ubuntu
Some checks failed
Deploy to v2 / deploy (push) Failing after 22s

This commit is contained in:
Untone 2024-02-17 14:03:33 +03:00
parent c758984158
commit d963ed714c

View File

@ -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