Browse Source

ci: set node_env to prod

Signed-off-by: rare-magma <rare-magma@posteo.eu>
pull/3614/head
rare-magma 1 year ago
parent
commit
635667a1c0
Failed to extract signature
  1. 3
      Dockerfile
  2. 2
      docker/entrypoint.sh

3
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 \

2
docker/entrypoint.sh

@ -1,7 +1,7 @@
#!/bin/sh
set -ex
export NODE_ENV=production
echo "Running database migrations"
npx prisma migrate deploy

Loading…
Cancel
Save