This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
# Builder stage
|
||||
FROM node:22-alpine AS builder
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
COPY . .
|
||||
RUN node setup.js
|
||||
RUN npm ci
|
||||
RUN npm run build
|
||||
|
||||
# Runner stage
|
||||
FROM node:22-alpine
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/build ./build
|
||||
RUN npm install -g serve
|
||||
EXPOSE 32100
|
||||
CMD ["serve", "-s", "build", "-l", "32100"]
|
||||
Reference in New Issue
Block a user