container: add --no-cache option to apk add

This commit is contained in:
naskya 2024-03-07 20:24:39 +09:00
parent 905cc665f8
commit 18c50f9669
No known key found for this signature in database
GPG key ID: 712D413B3A9FED5C

View file

@ -3,7 +3,7 @@ FROM docker.io/node:20-alpine as build
WORKDIR /firefish
# Install compilation dependencies
RUN apk update && apk add build-base curl ca-certificates python3
RUN apk update && apk add --no-cache build-base curl ca-certificates python3
RUN curl --proto '=https' --tlsv1.2 --silent --show-error --fail https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"
@ -48,7 +48,7 @@ FROM docker.io/node:20-alpine
WORKDIR /firefish
# Install runtime dependencies
RUN apk update && apk add zip unzip tini ffmpeg
RUN apk update && apk add --no-cache zip unzip tini ffmpeg
COPY . ./