drop cgo from docker file

This commit is contained in:
Hayden 2023-03-22 20:40:28 -08:00
parent 7fe9ae4f51
commit 948f827494
No known key found for this signature in database
GPG key ID: 17CF79474E257545
2 changed files with 1 additions and 2 deletions

View file

@ -22,7 +22,7 @@ COPY ./backend .
RUN go get -d -v ./... RUN go get -d -v ./...
RUN rm -rf ./app/api/public RUN rm -rf ./app/api/public
COPY --from=frontend-builder /app/.output/public ./app/api/static/public COPY --from=frontend-builder /app/.output/public ./app/api/static/public
RUN CGO_ENABLED=1 GOOS=linux go build \ RUN CGO_ENABLED=0 GOOS=linux go build \
-ldflags "-s -w -X main.commit=$COMMIT -X main.buildTime=$BUILD_TIME -X main.version=$VERSION" \ -ldflags "-s -w -X main.commit=$COMMIT -X main.buildTime=$BUILD_TIME -X main.version=$VERSION" \
-o /go/bin/api \ -o /go/bin/api \
-v ./app/api/*.go -v ./app/api/*.go

View file

@ -25,7 +25,6 @@ builds:
- goos: windows - goos: windows
goarch: "386" goarch: "386"
archives: archives:
- format: tar.gz - format: tar.gz
# this name template makes the OS and Arch compatible with the results of uname. # this name template makes the OS and Arch compatible with the results of uname.