File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,10 @@ COPY ./.markdownlint.yaml ${WORKDIR}/
48
48
# yamllint conf
49
49
COPY ./.yamllint ${WORKDIR}/
50
50
COPY ./.yamlignore ${WORKDIR}/
51
+ COPY ./.gitignore ${WORKDIR}/
52
+
53
+ # Dependencies
54
+ RUN npm ci --verbose --ignore-scripts
51
55
52
56
CMD ["make" , "lint" ]
53
57
@@ -57,14 +61,17 @@ FROM base AS development
57
61
ENV WORKDIR=/app
58
62
WORKDIR ${WORKDIR}
59
63
64
+ # Code source
60
65
COPY ./src ${WORKDIR}/src
61
66
COPY ./package.json ${WORKDIR}/package.json
62
67
COPY ./package-lock.json ${WORKDIR}/package-lock.json
63
68
COPY ./Makefile ${WORKDIR}/
64
69
COPY ./tsconfig.json ${WORKDIR}/tsconfig.json
65
70
COPY ./tsconfig.prod.json ${WORKDIR}/tsconfig.prod.json
66
71
67
- RUN npm ci --verbose --ignore-scripts
72
+ # Dependencies
73
+ COPY --from=lint /app/node_modules ${WORKDIR}/node_modules
74
+
68
75
RUN ls -alh
69
76
70
77
# CMD []
You can’t perform that action at this time.
0 commit comments