File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -12,19 +12,18 @@ RUN apk add --no-cache --virtual .build-deps \
1212
1313COPY . .
1414
15- RUN go build -ldflags "-s -w" -o treehole
15+ RUN go build -ldflags "-s -w" -o app
1616
1717FROM alpine
1818
1919WORKDIR /app
2020
21- COPY --from=builder /app/treehole /app/
21+ COPY --from=builder /app/app /app/
2222COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo
23- COPY data data
2423
2524ENV TZ=Asia/Shanghai
2625ENV MODE=production
2726
2827EXPOSE 8000
2928
30- ENTRYPOINT ["./treehole " ]
29+ ENTRYPOINT ["./app " ]
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ func main() {
4848
4949 // Create a custom HTTP server with Gin
5050 srv := & http.Server {
51- Addr : ":8080 " ,
51+ Addr : ":8000 " ,
5252 Handler : app ,
5353 }
5454
You can’t perform that action at this time.
0 commit comments