forked from dnum-mi/vue-dsfr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (21 loc) · 816 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM nexus.forge-dc.cloudmi.minint.fr/node:16.13.1-alpine3.14 as dev
WORKDIR /app
CMD ["npm", "run", "dev"]
FROM dev as storybook-build
ARG HTTP
ENV HTTP=${HTTP}
COPY ./package.json ./package-lock.json ./
RUN npm config set proxy $HTTP
RUN npm config set https-proxy $HTTP
RUN npm config set strict-ssl=false
RUN npm config set registry=http://registry.npmjs.com
RUN npm ping --registry http://registry.npmjs.com
RUN npm config get proxy
RUN npm i
COPY ./build-css.mjs ./index.html ./postcss.config.js ./rollup.config.js ./vite.config.js ./.browserslistrc ./
COPY ./src ./src
COPY ./public ./public
COPY ./.storybook ./.storybook
RUN npm run build-storybook
FROM nexus.forge-dc.cloudmi.minint.fr/nginx:1.21.4-alpine as storybook
COPY --from=storybook-build /app/storybook-static /usr/share/nginx/html