Hotfixes and CI/CD
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 3m51s
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 3m51s
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal file
@@ -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