Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
sharknoon authored Sep 27, 2024
1 parent 9a66830 commit be4498e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM node:22-alpine as build-stage
FROM node:22-alpine AS build-stage
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build

FROM node:22-alpine as production-stage
FROM node:22-alpine AS production-stage
RUN mkdir /app
COPY --from=build-stage /app/.output /app
EXPOSE 3000
CMD [ "node", "/app/server/index.mjs" ]
CMD [ "node", "/app/server/index.mjs" ]

0 comments on commit be4498e

Please sign in to comment.