Introduce Daymark public edition with isolated deployment configuration

This commit is contained in:
Dario P. committed 2026-10-25 00:24:42 +02:00
commit b27435ca57
19 files changed
+22664

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
FROM node:22-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM node:22-alpine AS production
ENV NODE_ENV=production PORT=3000
WORKDIR /app
RUN apk add --no-cache postgresql-client
COPY package*.json ./
RUN npm ci --omit=dev && npm cache clean --force
COPY --from=build /app/dist ./dist
COPY server.mjs ./
USER node
EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 CMD wget -qO- http://127.0.0.1:3000/api/health || exit 1
CMD ["node","server.mjs"]