simple-dockerfile
Some checks failed
Deploy to v2 / deploy (push) Failing after 1m25s

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

View File

@ -1,15 +1,12 @@
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 - && \ RUN curl -sSL https://install.python-poetry.org | python
echo "export PATH=$PATH:/root/.local/bin" >> ~/.bashrc && \ ENV PATH="${PATH}:/root/.local/bin"
. ~/.bashrc && \ RUN poetry config virtualenvs.create false && poetry install --no-dev
poetry config virtualenvs.create false && \
poetry install --no-dev
EXPOSE 8000 EXPOSE 8000
# Run server when the container launches CMD ["python", "server.py"]
CMD python server.py