Skip to content

Commit 589e65f

Browse files
committed
Cache yarn binary in docker image
1 parent 8432cc5 commit 589e65f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ WORKDIR /opt/cord-api
107107
# Copy built files from builder stage to this runtime stage
108108
COPY --from=builder /source /opt/cord-api
109109

110+
# Cache current yarn version
111+
RUN corepack install
112+
110113
# Grab latest timezone data
111114
RUN mkdir -p .cache && \
112115
curl -o .cache/timezones https://raw.githubusercontent.com/moment/moment-timezone/master/data/meta/latest.json

0 commit comments

Comments
 (0)