fix: switch docker image to alpine to avoid certificate errors
This commit is contained in:
1 parent
6bde6faedc
commit
778c92c3b9
2 files changed
+8
-1
No files matched your search
+7
-1
@@ -16,8 +16,14 @@ RUN go test -v ./...
|
||||
RUN go build -ldflags="-w -s" -o build
|
||||
|
||||
# === RUN STAGE === #
|
||||
FROM scratch as run
|
||||
FROM alpine as run
|
||||
|
||||
RUN apk update \
|
||||
&& apk upgrade \
|
||||
&& apk add --no-cache ca-certificates \
|
||||
&& update-ca-certificates \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
|
||||
WORKDIR /srv/app
|
||||
COPY --from=build /srv/app/build /srv/app/build
|
||||
|
||||
|
||||
Reference in new issue
Block a user