mirror of
https://github.com/Forceu/Gokapi.git
synced 2026-01-05 16:29:52 -06:00
Fixed build
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user