File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ RUN npm run build
2929
3030FROM node:24-alpine
3131
32+ # Install dumb-init for proper signal handling
33+ RUN apk add --no-cache dumb-init
34+
3235ARG PORT
3336ARG PGHOST
3437ARG PGPORT
@@ -69,12 +72,19 @@ LABEL org.opencontainers.image.licenses=MIT
6972
7073WORKDIR /app
7174
75+ # Copy runtime artifacts and configuration
7276COPY --from=build /build/dist .
77+ COPY --from=build /build/package.json /build/package-lock.json ./
78+ COPY --from=build /build/knexfile.js ./
79+ COPY --from=build /build/migrations ./migrations
80+ COPY --from=build /build/seeds ./seeds
7381
74- RUN npm install --omit=dev --quiet
82+ RUN npm install --omit=dev --quiet && npm install -g knex@2.4.0
7583
7684USER 1000:1000
7785
7886RUN mkdir -p $NOSTR_CONFIG_DIR
7987
88+ ENTRYPOINT ["dumb-init", "--"]
89+
8090CMD ["sh", "-c", "npm run db:migrate && node src/index.js"]
You can’t perform that action at this time.
0 commit comments