Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
services:
studio-app:
build:
context: .
dockerfile: docker/Dockerfile.prod
image: learningequality/studio-app-prod
ports:
- "8080:8081"
volumes:
- .:/src
environment:
MPLBACKEND: ps
SHELL: /bin/bash
AWS_S3_ENDPOINT_URL: http://minio:9000
AWS_BUCKET_NAME: content
DATA_DB_HOST: postgres
DJANGO_SETTINGS_MODULE: contentcuration.settings
RUN_MODE: docker-compose
CELERY_TIMEZONE: America/Los_Angeles
CELERY_REDIS_DB: 0
CELERY_BROKER_ENDPOINT: redis
CELERY_RESULT_BACKEND_ENDPOINT: redis
CELERY_REDIS_PASSWORD: ""
REMAP_SIGTERM: "SIGQUIT"
12 changes: 5 additions & 7 deletions docker/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ RUN corepack enable pnpm && pnpm install --frozen-lockfile

COPY . .

# Ensure expected bundles directory exists and run production frontend build
RUN mkdir -p contentcuration/static/js/bundles \
&& ln -s /contentcuration/node_modules /contentcuration/contentcuration/node_modules \
&& pnpm run build
# The webpack build, creating the frontend assets, later copied to the final image
RUN pnpm run build


FROM ghcr.io/astral-sh/uv:python3.10-trixie-slim
Expand Down Expand Up @@ -46,11 +44,11 @@ RUN uv pip sync --system /contentcuration/requirements.txt
COPY . /contentcuration/

# Copy compiled frontend static output from node-builder
COPY --from=node-builder /contentcuration/contentcuration/static /contentcuration/contentcuration/static
COPY --from=node-builder /contentcuration/contentcuration/contentcuration/static /contentcuration/contentcuration/contentcuration/static

ARG COMMIT_SHA
ENV RELEASE_COMMIT_SHA=$COMMIT_SHA

EXPOSE 8000
EXPOSE 8081

ENTRYPOINT ["make", "altprodserver"]
CMD ["make", "altprodserver"]
Loading