uploader-upgrade
Some checks failed
Deploy on Push / deploy (push) Failing after 8s

This commit is contained in:
2024-05-06 12:00:57 +03:00
parent 3242758817
commit 8133d0030f
8 changed files with 248 additions and 91 deletions

View File

@@ -1,12 +1,25 @@
FROM python:slim
FROM python:alpine
# Update package lists and install necessary dependencies
RUN apk update &&
apk add --no-cache build-base icu-data-full curl python3-dev musl-dev &&
curl -sSL https://install.python-poetry.org | python
# Set working directory
WORKDIR /app
# Copy only the pyproject.toml file initially
COPY pyproject.toml /app/
# Install poetry and dependencies
RUN pip install poetry &&
poetry config virtualenvs.create false &&
poetry install --no-root --only main
# Copy the rest of the files
COPY . /app
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
CMD ["python", "main.py"]
# Expose the port
EXPOSE 8000
CMD ["python", "server.py"]