3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-15 00:19:29 +01:00

Merge pull request #2072 from csmith/misc/docker-alpine-upgrade

Dockerfile: `apk upgrade` before `add`
This commit is contained in:
Shivaram Lingamneni 2023-06-02 16:38:51 -07:00 committed by GitHub
commit e4c8f041f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
## build ergo binary
FROM golang:1.20-alpine AS build-env
RUN apk add -U --force-refresh --no-cache --purge --clean-protected -l -u make git
RUN apk upgrade -U --force-refresh --no-cache && apk add --no-cache --purge --clean-protected -l -u make git
# copy ergo source
WORKDIR /go/src/github.com/ergochat/ergo