chore [P-261]: попытка

This commit is contained in:
Nukeap committed 2025-06-04 08:45:30 +03:00
1 parent 4cb0d47d23
commit 692ad41b6d
14 files changed
+111 -25

No files matched your search

+9 -1
View File
@@ -27,7 +27,15 @@ services:
depends_on:
- db
- redis
build:
context: .
args:
SOURCE_DIR: ./src/back
PROJECT_DIR: .
ports:
- "${BACKEND_EXTERNAL_PORT}:${BACKEND_INTERNAL_PORT}"
frontend:
+1
View File
@@ -6,6 +6,7 @@ services:
SOURCE_DIRFRONT: ./src/front
dockerfile: docker/dockerfiles/back_front_prod
nginx:
volumes:
- ${LOCAL_FILES_DIR}/nginx/conf/nginx.prod.conf:/etc/nginx/nginx.conf
+1 -1
View File
@@ -22,7 +22,7 @@ RUN dos2unix /script/backend-entrypoint.sh && chmod 777 /script/backend-entrypoi
python -m pip install --no-cache-dir poetry \
&& poetry config virtualenvs.in-project true \
&& poetry install --no-interaction --no-ansi
--without dev,test
# Устанавливаем зависимости
# RUN python -m venv env
# RUN pip install --no-cache-dir -r r.txt
+5 -9
View File
@@ -1,6 +1,3 @@
FROM alpine:latest
FROM node:lts-alpine as bstage
ARG SOURCE_DIRFRONT
@@ -30,21 +27,20 @@ WORKDIR /back
ARG SOURCE_DIR
ENV SOURCE_DIR=${SOURCE_DIR}
RUN apt-get update && apt-get install -y --no-install-recommends \
RUN apt-get update && apt-get install -y --no-install-recommends rsync \
libmariadb-dev-compat \
build-essential \
dos2unix \
build-essential \
pkg-config && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY --from=bstage /app/dist /app/front
COPY --from=bstage /app/dist /app/dist
# Копируем файлы зависимостей в контейнер
COPY ${SOURCE_DIR}/pyproject.toml ${SOURCE_DIR}/README.md ./
COPY docker/entries/backend-entrypoint.sh /script/backend-entrypoint.sh
RUN dos2unix /script/backend-entrypoint.sh && chmod 777 /script/backend-entrypoint.sh && \
python -m pip install --upgrade pip --no-cache-dir poetry \
RUN chmod 777 /script/backend-entrypoint.sh && \
python -m pip install --no-cache-dir poetry \
&& poetry config virtualenvs.in-project true \
&& poetry install --no-interaction --no-ansi
##--without dev,test
+1 -1
View File
@@ -29,7 +29,7 @@ else
# Фронт и бэк в одном
mkdir -p /app/front/ && rsync -av --delete /app/dist/ /app/front/
mkdir -p /app/front/build && rsync -av --delete /app/dist/ /app/front/build
poetry run daphne -p 8000 -b 0.0.0.0 portal.asgi:application
# python -m uvicorn config.asgi:application --bind 0.0.0.0:8000 --worker-class uvicorn.workers.UvicornWorker --timeout 180 --workers $WORKERS_COUNT --log-level debug --access-logfile - --error-logfile - --pid /tmp/gunicorn.pid'
# celery --app speaker worker --loglevel=$CELERY_LOGLEVEL --concurrency 1 -E &