17 lines
308 B
Docker
17 lines
308 B
Docker
FROM node:23-alpine AS builder
|
|
WORKDIR /app
|
|
RUN npm install -g typescript
|
|
COPY package*.json ./
|
|
RUN npm install
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
FROM node:23-alpine AS server
|
|
WORKDIR /app
|
|
COPY package* ./
|
|
RUN npm install --production
|
|
COPY --from=builder /app/dist ./dist
|
|
COPY . .
|
|
EXPOSE 8080
|
|
CMD ["npm", "start"]
|