File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 1+ coverage
2+ dist
3+ node_modules
Original file line number Diff line number Diff line change 1+ coverage
2+ dist
13node_modules
24.serverless
35.webpack
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ COPY ./Makefile ${WORKDIR}/
4040COPY ./.prettierrc ${WORKDIR}/
4141COPY ./.prettierignore ${WORKDIR}/
4242COPY ./.eslintrc ${WORKDIR}/
43+ COPY ./.eslintignore ${WORKDIR}/
4344COPY ./.babelrc ${WORKDIR}/
4445
4546# markdownlint conf
@@ -65,19 +66,12 @@ RUN npm ci --verbose --ignore-scripts
6566RUN ls -alh
6667
6768# CMD []
68- WORKDIR ${WORKDIR}
6969# ##############################################################################
70- FROM base AS builder
70+ FROM development AS builder
7171
7272ENV WORKDIR=/app
7373WORKDIR ${WORKDIR}
7474
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
8175RUN npm run build
8276
8377CMD ["ls" , "-alh" ]
@@ -114,13 +108,12 @@ ENV WORKDIR=/app
114108WORKDIR ${WORKDIR}
115109
116110COPY --from=builder /app/dist ${WORKDIR}/dist
117- COPY --from=builder /app/node_modules ${WORKDIR}/node_modules
118111
119112COPY ./Makefile ${WORKDIR}/
120113COPY ./package.json ${WORKDIR}/package.json
121114COPY ./package-lock.json ${WORKDIR}/package-lock.json
122- COPY ./Makefile ${WORKDIR}/
123115
116+ RUN npm ci --verbose --omit=dev --omit=optional --ignore-scripts --no-cache
124117RUN ls -alh
125118
126119USER node
You can’t perform that action at this time.
0 commit comments