Adrià Vilanova MartÃnez | f7ee658 | 2021-09-02 21:53:28 +0200 | [diff] [blame] | 1 | FROM node:16-alpine as build-stage |
2 | |||||
3 | WORKDIR /app | ||||
4 | |||||
5 | COPY package*.json /app | ||||
6 | |||||
7 | RUN npm install | ||||
8 | |||||
9 | COPY ./ /app/ | ||||
10 | |||||
11 | RUN ./node_modules/webpack-cli/bin/cli.js --mode production | ||||
12 | |||||
13 | FROM nginx:1.21-alpine | ||||
14 | LABEL maintainer "me@avm99963.com" | ||||
15 | |||||
16 | COPY --from=build-stage /app/dist /usr/share/nginx/html |