上传文件至「/」
This commit is contained in:
10
Dockerfile
Normal file
10
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user