Skip to content

Commit

Permalink
update docker workflow config
Browse files Browse the repository at this point in the history
  • Loading branch information
bbbbbbbbbbbbba committed May 28, 2024
1 parent 466280e commit b414969
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ WORKDIR "$APP_HOME"

COPY go.mod ./
COPY go.sum ./
RUN go env -w GOPROXY=https://goproxy.cn,direct \
&& go mod download
# RUN go env -w GOPROXY=https://goproxy.cn,direct \
# && go mod download
RUN go mod download

COPY . ./
RUN CGO_ENABLED=0 go build -v -o bbs-go cmd/server/main.go && chmod +x bbs-go
RUN CGO_ENABLED=0 go build -v -o bbs-go main.go && chmod +x bbs-go

FROM alpine:latest

Expand Down

0 comments on commit b414969

Please sign in to comment.