badgen.net/Dockerfile

15 wiersze
233 B
Docker
Czysty Zwykły widok Historia

FROM node:18-alpine AS build
2019-07-12 08:18:18 +00:00
WORKDIR /src
2019-06-09 12:11:33 +00:00
COPY . .
RUN npm ci && npm run build
FROM node:18-alpine
2019-06-09 12:11:33 +00:00
WORKDIR /app
2019-07-12 08:18:18 +00:00
COPY --from=build /src/dist .
2019-06-09 12:11:33 +00:00
ENTRYPOINT node /app/index.js
COPY package* ./
RUN npm ci --only=production
EXPOSE 3000