Skip to content

Commit

Permalink
Fix the production docker configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Mar 27, 2024
1 parent 9f5b635 commit 0b9206e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 44 deletions.
5 changes: 3 additions & 2 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: seismic_multi
name: seismic_prod

services:

Expand All @@ -9,10 +9,10 @@ services:
container_name: seismic_db

backend:
container_name: seismic_backend
extends:
file: docker-compose.base.yml
service: backend_base
container_name: seismic_backend
build:
context: .
dockerfile: ./docker/dockerfiles/Dockerfile.backend
Expand All @@ -25,6 +25,7 @@ services:
extends:
file: docker-compose.base.yml
service: client_base
container_name: seismic_client
build:
context: ./
dockerfile: ./docker/dockerfiles/Dockerfile.frontend
Expand Down
39 changes: 0 additions & 39 deletions docker-compose.test.yml

This file was deleted.

2 changes: 1 addition & 1 deletion docker/dockerfiles/Dockerfile.backend
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN python3 -m pip install --upgrade pip setuptools && \
python3 -m pip install -r ./requirements.txt


FROM python:v${PYTHON_VERSION}-slim-bookworm
FROM python:${PYTHON_VERSION}-slim-bookworm

ENV PYTHONUNBUFFERED=1

Expand Down
4 changes: 2 additions & 2 deletions docker/dockerfiles/Dockerfile.frontend
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG NODE_VERSION=20.11.1
ARG NODE_VERSION=18.19.1
ARG NGINX_VERSION=1.25.4

FROM node:${NODE_VERSION}-bookworm-slim as frontend
Expand All @@ -16,7 +16,7 @@ ENV REACT_APP_DJANGO_API_ENDPOINT ${REACT_APP_DJANGO_API_ENDPOINT}

WORKDIR /var/www/seismic/frontend

COPY ./ .
COPY ./client/ ./

# install the frontend libraries:
RUN npm ci && \
Expand Down

0 comments on commit 0b9206e

Please sign in to comment.