1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

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

View File

@ -4,7 +4,7 @@ FROM golang:1.16-alpine AS build-env
WORKDIR /src WORKDIR /src
# Required for go-sqlite3 # Required for go-sqlite3
RUN apk add gcc musl-dev RUN apk add --no-cache gcc musl-dev
ADD ./go.mod . ADD ./go.mod .
RUN go mod download RUN go mod download
@ -31,7 +31,7 @@ RUN cp /src/wakapi . && \
FROM alpine:3 FROM alpine:3
WORKDIR /app 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 # See README.md and config.default.yml for all config options
ENV ENVIRONMENT prod ENV ENVIRONMENT prod