From 91e7526dcda65eabb5e7dd192d74f880af846a46 Mon Sep 17 00:00:00 2001 From: Vilsol Date: Mon, 26 Oct 2020 03:53:56 +0200 Subject: [PATCH] Fix docker image --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7dc4166..a441f9a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM golang:1.15-alpine AS builder -RUN apk add --no-cache git build-base +RUN apk add --no-cache git WORKDIR $GOPATH/src/github.com/Vilsol/yeet/ @@ -12,7 +12,7 @@ RUN go mod download COPY . . -RUN GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o /yeet main.go +RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o /yeet main.go FROM scratch