mirror of
https://github.com/blackboxprogramming/new_world.git
synced 2026-03-17 07:57:24 -05:00
13 lines
232 B
Docker
13 lines
232 B
Docker
FROM node:20-alpine AS builder
|
|
WORKDIR /app
|
|
COPY package*.json ./
|
|
RUN npm ci --production
|
|
COPY . .
|
|
RUN npm run build --if-present
|
|
|
|
FROM node:20-alpine
|
|
WORKDIR /app
|
|
COPY --from=builder /app .
|
|
EXPOSE 3000
|
|
CMD ["node", "src/index.js"]
|