Fixed build

This commit is contained in:
Marc Ole Bulling
2021-12-10 19:31:43 +01:00
parent 20ea34ffe9
commit 929c0247cd
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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