perf: use --no-cache in Dockerfile

This commit is contained in:
Steven Tang 2022-01-03 11:16:17 +11:00
parent 36c96dafca
commit bf7f93fcd4
No known key found for this signature in database
GPG Key ID: AA0C5A4496B7ADF5
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ FROM golang:1.16-alpine AS build-env
WORKDIR /src
# Required for go-sqlite3
RUN apk add gcc musl-dev
RUN apk add --no-cache gcc musl-dev
ADD ./go.mod .
RUN go mod download
@ -31,7 +31,7 @@ RUN cp /src/wakapi . && \
FROM alpine:3
WORKDIR /app
RUN apk update && apk add bash ca-certificates tzdata && rm -rf /var/cache/apk
RUN apk add --no-cache bash ca-certificates tzdata
# See README.md and config.default.yml for all config options
ENV ENVIRONMENT prod