bizcochito.onion/Dockerfile

17 lines
308 B
Docker
Raw Normal View History

2024-07-05 13:22:31 +00:00
FROM node:18-alpine AS builder
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-07-05 13:22:31 +00:00
FROM node:18-alpine AS server
WORKDIR /app
COPY package* ./
RUN npm install --production
COPY --from=builder /app/dist ./dist
COPY . .
EXPOSE 8080
CMD ["npm", "start"]