website/Dockerfile

17 lines
316 B
Docker
Raw Normal View History

2025-01-03 08:23:11 +00:00
FROM node:23.5.0-alpine AS builder
2024-07-05 13:22:31 +00:00
WORKDIR /app
RUN npm install -g typescript
COPY package*.json ./
RUN npm install
2024-07-03 08:14:37 +00:00
COPY . .
2024-07-05 13:22:31 +00:00
RUN npm run build
2024-07-03 08:14:37 +00:00
2025-01-03 08:23:11 +00:00
FROM node:23.5.0-alpine AS server
2024-07-05 13:22:31 +00:00
WORKDIR /app
COPY package* ./
RUN npm install --production
COPY --from=builder /app/dist ./dist
COPY . .
EXPOSE 8080
CMD ["npm", "start"]