Add Dockerfile + Workflow
This commit is contained in:
11
dockerfile
Normal file
11
dockerfile
Normal file
@ -0,0 +1,11 @@
|
||||
FROM node:24-alpine AS builder
|
||||
WORKDIR /app
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm install
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
FROM busybox:1.30 AS runner
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/dist .
|
||||
CMD ["busybox", "httpd", "-f", "-v", "-p", "8080"]
|
Reference in New Issue
Block a user