Skip to content

Commit 6047acb

Browse files
committed
fix: dockerfile
1 parent a0960ab commit 6047acb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/build.yml

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545

4646
- name: Go Build
4747
run: |
48+
export CGO_ENABLED=0
4849
export GOOS=${{ matrix.targets.OS }}
4950
export GOARCH=${{ matrix.targets.ARCH }}
5051
mkdir -p dist

server/Dockerfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ FROM golang:1.23-alpine AS builder
22

33
COPY ./ ./
44

5-
RUN go build -trimpath -ldflags="-s -w" -o /wst-server ./server
5+
ENV CGO_ENABLED=0
6+
7+
RUN go build -trimpath -ldflags="-s -w" -o /wst-server .
68

79
FROM alpine:latest
810

0 commit comments

Comments
 (0)