final
This commit is contained in:
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
FROM node:22-alpine AS build
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm ci
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
FROM node:22-alpine
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/dist ./dist
|
||||
RUN npm i -g serve
|
||||
EXPOSE 3000
|
||||
ENV NODE_ENV=production
|
||||
CMD ["serve", "-s", "dist", "-l", "3000"]
|
||||
Reference in New Issue
Block a user