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