docker image and build action
Build and Publish / build-and-publish (push) Failing after 22s

This commit is contained in:
nick committed 2026-09-21 22:45:00 -07:00
1 parent 2a1d4f6728
commit 39ad0b8c35
3 files changed
+79

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
FROM node:22-alpine AS build
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
# Runtime stage: serve the built app with Express
FROM node:22-alpine
WORKDIR /app
ENV NODE_ENV=production
COPY package.json package-lock.json ./
RUN npm ci --omit=dev
COPY server.js ./
COPY --from=build /app/dist ./dist
EXPOSE 3000
USER node
CMD ["node", "server.js"]