File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change
1
+ dist /
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ COPY ./Makefile ${WORKDIR}/
40
40
COPY ./.prettierrc ${WORKDIR}/
41
41
COPY ./.prettierignore ${WORKDIR}/
42
42
COPY ./.eslintrc ${WORKDIR}/
43
+ COPY ./.eslintignore ${WORKDIR}/
43
44
COPY ./.babelrc ${WORKDIR}/
44
45
45
46
# markdownlint conf
@@ -65,19 +66,12 @@ RUN npm ci --verbose --ignore-scripts
65
66
RUN ls -alh
66
67
67
68
# CMD []
68
- WORKDIR ${WORKDIR}
69
69
# ##############################################################################
70
- FROM base AS builder
70
+ FROM development AS builder
71
71
72
72
ENV WORKDIR=/app
73
73
WORKDIR ${WORKDIR}
74
74
75
- COPY ./src ${WORKDIR}/src
76
- COPY ./package.json ${WORKDIR}/package.json
77
- COPY ./package-lock.json ${WORKDIR}/package-lock.json
78
- COPY ./Makefile ${WORKDIR}/
79
-
80
- RUN rm -vfr node_modules && npm ci --verbose --omit=dev --ignore-scripts
81
75
RUN npm run build
82
76
83
77
CMD ["ls" , "-alh" ]
@@ -114,13 +108,12 @@ ENV WORKDIR=/app
114
108
WORKDIR ${WORKDIR}
115
109
116
110
COPY --from=builder /app/dist ${WORKDIR}/dist
117
- COPY --from=builder /app/node_modules ${WORKDIR}/node_modules
118
111
119
112
COPY ./Makefile ${WORKDIR}/
120
113
COPY ./package.json ${WORKDIR}/package.json
121
114
COPY ./package-lock.json ${WORKDIR}/package-lock.json
122
- COPY ./Makefile ${WORKDIR}/
123
115
116
+ RUN npm ci --verbose --omit=dev --omit=optional --ignore-scripts --no-cache
124
117
RUN ls -alh
125
118
126
119
USER node
You can’t perform that action at this time.
0 commit comments