Files
fichajes/Dockerfile
Antoni Nuñez Romeu 114fda056d
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 3m51s
Hotfixes and CI/CD
2026-04-17 15:33:19 +02:00

16 lines
307 B
Docker

# 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"]