dockerfile-fix
All checks were successful
Deploy to core / deploy (push) Successful in 1m52s

This commit is contained in:
Untone 2024-02-17 13:25:24 +03:00
parent 93d536bdba
commit 47ecf4bd1a

View File

@ -3,13 +3,10 @@ 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 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"]