Files
Jellystat/Dockerfile
Thegan Govender ea4da8e98a Update Dockerfile
2023-11-28 19:16:42 +02:00

25 lines
334 B
Docker

# Stage 1: Build the application
FROM node:slim AS builder
WORKDIR /app
COPY package*.json ./
RUN npm cache clean --force
RUN npm install
COPY ./ ./
# Build the application
RUN npm run build
# Stage 2: Create the production image
FROM node:slim
WORKDIR /app
COPY --from=builder /app .
EXPOSE 3000
CMD ["npm", "run", "start"]