less-versioning-py
Some checks failed
Deploy to v2 / deploy (push) Failing after 10s

This commit is contained in:
2024-02-17 03:13:34 +03:00
parent 660cdb5a7b
commit 51ee7f728c
3 changed files with 11 additions and 113 deletions

View File

@@ -1,5 +1,5 @@
# Use an official Python runtime as a parent image
FROM python:3.12-alpine
FROM python:alpine
# Set the working directory in the container to /app
WORKDIR /app
@@ -12,10 +12,8 @@ COPY . /app
# Install any needed packages specified in pyproject.toml
RUN apk update && apk add --no-cache gcc curl && \
curl -sSL https://install.python-poetry.org | python - && \
export PATH=$PATH:/root/.local/bin && \
poetry config virtualenvs.create false && \
poetry install --no-dev
RUN pip install -r requirements.txt --no-cache
# Run server.py when the container launches
CMD ["python", "server.py"]