feature gunicorn startup

This commit is contained in:
2026-08-13 19:30:55 +03:00
parent e23a6fc569
commit 0f8d816e7f
4 changed files with 79 additions and 16 deletions
+7 -3
View File
@@ -6,7 +6,9 @@ LABEL org.opencontainers.image.source="https://git.homyk.space/MH.Dmitrii/The_Gr
WORKDIR /home/excel-project
COPY pyproject.toml poetry.lock ./
COPY pyproject.toml poetry.lock docker/entrypoint.sh ./
RUN chmod +x ./entrypoint.sh
RUN pip install --no-cache-dir --break-system-packages poetry \
&& poetry config virtualenvs.create false \
@@ -21,9 +23,11 @@ LABEL org.opencontainers.image.source="https://git.homyk.space/MH.Dmitrii/The_Gr
WORKDIR /home/excel-project
COPY pyproject.toml poetry.lock main.py ./
COPY pyproject.toml poetry.lock main.py docker/entrypoint.sh ./
COPY src/ ./src/
RUN chmod +x ./entrypoint.sh
RUN pip install --no-cache-dir --break-system-packages poetry \
&& poetry config virtualenvs.create false \
&& poetry install --no-root --no-interaction --only main
@@ -34,4 +38,4 @@ RUN groupadd --gid 1000 appuser \
USER appuser
ENTRYPOINT ["python3", "main.py"]
ENTRYPOINT ["./entrypoint.sh", "--prod"]