2024-11-23 13:04:42 +00:00
|
|
|
FROM node:23-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
|
|
|
|
2024-11-23 13:04:42 +00:00
|
|
|
FROM node:23-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"]
|