feature gunicorn startup
This commit is contained in:
+7
-3
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user