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
Failed to extract signature
2 changed files with
3 additions and
2 deletions
-
Dockerfile
-
docker/entrypoint.sh
|
@ -1,4 +1,5 @@ |
|
|
FROM --platform=$BUILDPLATFORM node:20-slim as builder |
|
|
FROM --platform=$BUILDPLATFORM node:20-slim as builder |
|
|
|
|
|
ENV NODE_ENV=production |
|
|
|
|
|
|
|
|
# Build application and add additional files |
|
|
# Build application and add additional files |
|
|
WORKDIR /ghostfolio |
|
|
WORKDIR /ghostfolio |
|
@ -51,8 +52,8 @@ RUN yarn database:generate-typings |
|
|
|
|
|
|
|
|
# Image to run, copy everything needed from builder |
|
|
# Image to run, copy everything needed from builder |
|
|
FROM node:20-slim |
|
|
FROM node:20-slim |
|
|
|
|
|
|
|
|
LABEL org.opencontainers.image.source="https://github.com/ghostfolio/ghostfolio" |
|
|
LABEL org.opencontainers.image.source="https://github.com/ghostfolio/ghostfolio" |
|
|
|
|
|
ENV NODE_ENV=production |
|
|
|
|
|
|
|
|
RUN apt update && apt install -y \ |
|
|
RUN apt update && apt install -y \ |
|
|
curl \ |
|
|
curl \ |
|
|
|
@ -1,7 +1,7 @@ |
|
|
#!/bin/sh |
|
|
#!/bin/sh |
|
|
|
|
|
|
|
|
set -ex |
|
|
set -ex |
|
|
|
|
|
export NODE_ENV=production |
|
|
echo "Running database migrations" |
|
|
echo "Running database migrations" |
|
|
npx prisma migrate deploy |
|
|
npx prisma migrate deploy |
|
|
|
|
|
|
|
|