Created
June 30, 2025 14:32
-
-
Save jgcmarins/e6909359b84b2623ba7893e9c54dce0c to your computer and use it in GitHub Desktop.
Revisions
-
jgcmarins created this gist
Jun 30, 2025 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ FROM node:22.16-alpine AS builder WORKDIR /app COPY package.json yarn.lock ./ RUN yarn install --frozen-lockfile COPY . . RUN yarn build RUN rm -rf node_modules && yarn install --production --frozen-lockfile FROM alpine AS runtime WORKDIR /app RUN apk add --no-cache nodejs-lts COPY --from-builder /app/package.json ./ COPY --from-builder /app/node_modules ./node_ modules COPY --from-builder /app/dist ./dist EXPOSE 3000 CMD ["node", "dist/main"]