From 929c0247cda187300902ad9030cf63dbd82dac33 Mon Sep 17 00:00:00 2001 From: Marc Ole Bulling Date: Fri, 10 Dec 2021 19:31:43 +0100 Subject: [PATCH] Fixed build --- Dockerfile | 2 +- build/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4c5bf96..1e04694 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ RUN cd /compile && go mod tidy && go mod download COPY . /compile -RUN cd /compile && go generate ./... && CGO_ENABLED=0 go build -ldflags="-s -w -X 'Gokapi/internal/environment.IsDocker=true' -X 'Gokapi/internal/environment.Builder=Project Docker File' -X 'Gokapi/internal/environment.BuildTime=$(date)'" -o /compile/gokapi Gokapi/cmd/gokapi +RUN cd /compile && go mod tidy && go generate ./... && CGO_ENABLED=0 go build -ldflags="-s -w -X 'Gokapi/internal/environment.IsDocker=true' -X 'Gokapi/internal/environment.Builder=Project Docker File' -X 'Gokapi/internal/environment.BuildTime=$(date)'" -o /compile/gokapi Gokapi/cmd/gokapi FROM alpine:3.13 diff --git a/build/Dockerfile b/build/Dockerfile index 6c73041..251f185 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -13,7 +13,7 @@ RUN \ COPY go.mod /tmp/tmp/go.mod -RUN cd /tmp/tmp/ && go mod tidy && go mod download && rm -r /tmp/tmp +RUN cd /tmp/tmp/ && go mod download && rm -r /tmp/tmp COPY entrypoint.sh /entrypoint.sh