sanbo commited on
Commit
2695283
·
1 Parent(s): 48d35ed

update sth. at 2024-12-18 21:37:38

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -8,13 +8,13 @@ COPY go.mod go.sum ./
8
  RUN go mod download
9
 
10
  COPY . .
11
- RUN CGO_ENABLED=0 GOARCH=amd64 go build -o ddg-chat-go .
12
 
13
  FROM alpine:latest
14
 
15
  WORKDIR /app
16
 
17
- COPY --from=builder /app/ddg-chat-go .
18
 
19
  ENV MAX_RETRY_COUNT="3"
20
  ENV RETRY_DELAY="5000"
@@ -22,6 +22,6 @@ ENV PORT="7860"
22
 
23
  EXPOSE 7860
24
 
25
- RUN chmod +x ddg-chat-go
26
 
27
- CMD ["./ddg-chat-go"]
 
8
  RUN go mod download
9
 
10
  COPY . .
11
+ RUN CGO_ENABLED=0 GOARCH=amd64 go build -o ddg .
12
 
13
  FROM alpine:latest
14
 
15
  WORKDIR /app
16
 
17
+ COPY --from=builder /app/ddg .
18
 
19
  ENV MAX_RETRY_COUNT="3"
20
  ENV RETRY_DELAY="5000"
 
22
 
23
  EXPOSE 7860
24
 
25
+ RUN chmod +x ddg
26
 
27
+ CMD ["./ddg"]