Skip to content

Commit 6f2b2d9

Browse files
committed
Add cache mounts
1 parent 9becab3 commit 6f2b2d9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
FROM node:alpine AS runtime-dependencies
55

66
WORKDIR /app
7-
RUN apk add --no-cache python3 alpine-sdk
7+
RUN --mount=type=cache,target=/var/cache/apk \
8+
apk add --no-cache python3 alpine-sdk
89

910
RUN --mount=type=bind,source=package.json,target=package.json \
1011
--mount=type=bind,source=package-lock.json,target=package-lock.json \
@@ -17,7 +18,8 @@ FROM node:alpine
1718
WORKDIR /app
1819

1920
# ffmpeg needed for get-audio-duration
20-
RUN apk add --no-cache \
21+
RUN --mount=type=cache,target=/var/cache/apk \
22+
apk add --no-cache \
2123
font-noto-emoji \
2224
fontconfig \
2325
ffmpeg \

0 commit comments

Comments
 (0)