diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 60bc9b7ccd..bb2f3f1e73 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -9,8 +9,6 @@ services: - ${UPLOAD_LOCATION}:/usr/src/app/upload env_file: - .env - environment: - - NODE_ENV=production depends_on: - redis - database @@ -25,8 +23,6 @@ services: - ${UPLOAD_LOCATION}:/usr/src/app/upload env_file: - .env - environment: - - NODE_ENV=production depends_on: - redis - database @@ -41,8 +37,6 @@ services: - model-cache:/cache env_file: - .env - environment: - - NODE_ENV=production restart: always immich-web: diff --git a/machine-learning/Dockerfile b/machine-learning/Dockerfile index 126cfee291..3f35c95df8 100644 --- a/machine-learning/Dockerfile +++ b/machine-learning/Dockerfile @@ -11,6 +11,8 @@ RUN /opt/venv/bin/pip install --no-deps sentence-transformers FROM python:3.10-slim +ENV NODE_ENV=production + COPY --from=builder /opt/venv /opt/venv ENV TRANSFORMERS_CACHE=/cache \ diff --git a/server/Dockerfile b/server/Dockerfile index 843f720b58..51891478a6 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -1,4 +1,4 @@ -FROM node:16-alpine3.14 as builder +FROM node:16-alpine3.17 as builder WORKDIR /usr/src/app @@ -17,7 +17,9 @@ RUN npm run build RUN npm prune --omit=dev --omit=optional -FROM node:16-alpine3.14 +FROM node:16-alpine3.17 + +ENV NODE_ENV=production WORKDIR /usr/src/app diff --git a/web/Dockerfile b/web/Dockerfile index 4dc4abaf26..9c98f1242e 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -1,5 +1,5 @@ # Our Node base image -FROM node:16-alpine3.14 as base +FROM node:16-alpine3.17 as base WORKDIR /usr/src/app EXPOSE 3000