Squashed 'backend/' content from commit fa83223

git-subtree-dir: backend
git-subtree-split: fa832234607d359848516c9334f2eec45f64969e
This commit is contained in:
2026-04-27 22:44:05 +02:00
commit f8bb37e12f
44 changed files with 7444 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
FROM node:20-alpine AS build
WORKDIR /build
ADD "package*.json" ./
RUN --mount=type=cache,target=/root/.npm npm ci
COPY . .
RUN npm run build
FROM node:20-alpine AS server
WORKDIR /app
COPY --from=build /build/package*.json ./
COPY --from=build /build/dist/ipwa-server.js ./index.cjs
RUN --mount=type=cache,target=/root/.npm npm ci --omit dev
RUN --mount=type=cache,target=/root/.npm npm install pm2 -g
EXPOSE 8080
ENV NODE_ENV=production
CMD [ "pm2-runtime", "--json", "index.cjs" ]