From 83cea00d45f8028fd61da5e707d669b8a817db04 Mon Sep 17 00:00:00 2001 From: GGP1 Date: Sat, 6 Aug 2022 11:22:17 -0300 Subject: [PATCH] Disable CGO --- Dockerfile | 4 ++-- Dockerfile.secure | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8ff9982..b655531 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,11 +10,11 @@ RUN apk add --update --no-cache git COPY . . -RUN go install -ldflags="-s -w" . +RUN CGO_ENABLED=0 go install -ldflags="-s -w" . # --------------------------------------------- -FROM alpine:3.15 +FROM alpine:3.16 RUN apk add --update --no-cache vim diff --git a/Dockerfile.secure b/Dockerfile.secure index 2caa3de..f1deb48 100644 --- a/Dockerfile.secure +++ b/Dockerfile.secure @@ -10,11 +10,11 @@ RUN apk add --update --no-cache git COPY . . -RUN go install -ldflags="-s -w" . +RUN CGO_ENABLED=0 go install -ldflags="-s -w" . # --------------------------------------------- -FROM alpine:3.15 +FROM alpine:3.16 ENV USER=gandalf ENV UID=10001