build(deployment): use sibling repos as docker build context

This commit is contained in:
2026-04-23 19:50:44 +03:30
parent ed47645fef
commit 3b052aeca4
7 changed files with 81 additions and 46 deletions

View File

@@ -11,7 +11,7 @@ DJANGO_ALLOWED_HOSTS=
POSTGRES_DB=app_db
POSTGRES_USER=app_user
POSTGRES_PASSWORD=app_password
POSTGRES_HOST=localhost
POSTGRES_HOST=db
POSTGRES_PORT=5432
# CORS / CSRF
@@ -30,11 +30,11 @@ JWT_ALGORITHM=HS256
# Redis / Celery
REDIS_URL=redis://redis:6379/0
REDIS_HOST=127.0.0.1
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_PASSWORD=
CELERY_BROKER_URL=
CELERY_RESULT_BACKEND=
CELERY_BROKER_URL=redis://redis:6379/0
CELERY_RESULT_BACKEND=redis://redis:6379/0
# Timzone / Language
LANGUAGE_CODE=en-us

View File

@@ -16,10 +16,10 @@ RUN apt-get update \
&& apt-get install -y gcc libpq-dev \
&& rm -rf /var/lib/apt/lists/*
COPY qlockify-backend/requirements/ /app/requirements/
RUN pip install --no-cache-dir -r requirements/base.txt \
&& pip install --no-cache-dir -r requirements/prod.txt
COPY qlockify-backend/ .
CMD ["gunicorn", "core.wsgi:application", "--bind", "0.0.0.0:8000"]
COPY qlockify-backend/requirements/ /app/requirements/
RUN pip install --no-cache-dir -r requirements/base.txt \
&& pip install --no-cache-dir -r requirements/prod.txt
COPY qlockify-backend/ .
CMD ["gunicorn", "config.wsgi:application", "--bind", "0.0.0.0:8000"]