aifud commited on
Commit
00e44af
·
1 Parent(s): 9167357

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -8
Dockerfile CHANGED
@@ -1,11 +1,5 @@
1
  FROM golang:alpine AS builder
 
2
  WORKDIR /app
3
  COPY . .
4
- RUN go build -ldflags="-s -w" -tags netgo -trimpath -o go-proxy-bingai main.go
5
-
6
- FROM alpine
7
- WORKDIR /app
8
- COPY --from=builder /app/go-proxy-bingai .
9
-
10
- EXPOSE 8080
11
- CMD ["/app/go-proxy-bingai"]
 
1
  FROM golang:alpine AS builder
2
+ RUN apk --no-cache add git
3
  WORKDIR /app
4
  COPY . .
5
+ RUN git clone https://github.com/adams549659584/go-proxy-bingai.git /workspace/app