diff --git a/Dockerfile b/Dockerfile index 57921f88c..1039bfd59 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ FROM --platform=$BUILDPLATFORM node:20-slim as builder +ENV NODE_ENV=production # Build application and add additional files WORKDIR /ghostfolio @@ -51,8 +52,8 @@ RUN yarn database:generate-typings # Image to run, copy everything needed from builder FROM node:20-slim - LABEL org.opencontainers.image.source="https://github.com/ghostfolio/ghostfolio" +ENV NODE_ENV=production RUN apt update && apt install -y \ curl \ diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 71cf6f2dc..a9139cdbc 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -1,7 +1,7 @@ #!/bin/sh set -ex - +export NODE_ENV=production echo "Running database migrations" npx prisma migrate deploy