上传文件至「/」

This commit is contained in:
XOF
2025-11-28 20:10:15 +08:00
commit a686020338
4 changed files with 600 additions and 0 deletions

10
Dockerfile Normal file
View File

@@ -0,0 +1,10 @@
FROM golang:1.25-alpine AS builder
WORKDIR /build
COPY main.go .
RUN go build -ldflags="-s -w" -o stock-checker main.go
FROM alpine:latest
WORKDIR /app
COPY --from=builder /build/stock-checker .
RUN chmod +x stock-checker
EXPOSE 8080
CMD ["./stock-checker"]