File tree Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Expand file tree Collapse file tree 1 file changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -7,21 +7,32 @@ FROM ghcr.io/scality/zenko-drctl:$DRCTL_TAG AS drctl
7
7
FROM ghcr.io/scality/cli-testing:$CTST_TAG
8
8
9
9
COPY package.json /tmp/package.json
10
+
11
+ USER root
12
+ RUN npm install typescript@5.8.3 -g
13
+
14
+ # CTST does it if needed, but better to merge dependencies
15
+ # here so we benefit from Docker layer caching
16
+ WORKDIR /ctst
17
+ RUN merge-packages /tmp/package.json package.json --output package.json && \
18
+ jq 'del(.devDependencies)' package.json > package.json.tmp && \
19
+ mv package.json.tmp package.json && \
20
+ echo "Merged package.json:" && cat package.json && \
21
+ yarn install --prod --network-concurrency=1 && \
22
+ yarn cache clean && \
23
+ echo "Dependencies pre-installed at build time - runtime will skip installation" && \
24
+ touch .init
25
+
10
26
COPY ./features /ctst/features
11
27
COPY ./common /ctst/common
12
28
COPY ./steps /ctst/steps
13
29
COPY ./world /ctst/world
14
30
15
- USER root
16
- RUN npm install typescript@5.8.3 -g
17
-
18
31
RUN chmod 0777 -R /tmp/
19
32
RUN chmod 0777 -R /ctst/
20
33
21
34
ENV SDK=true
22
35
23
- WORKDIR /ctst
24
-
25
36
COPY --from=sorbet /sorbetctl .
26
37
COPY --from=drctl /zenko-drctl .
27
38
You can’t perform that action at this time.
0 commit comments