This commit is contained in:
谢作欢
2023-11-02 17:24:36 +08:00
commit 4f6f6a0d6a
15 changed files with 1281 additions and 0 deletions

18
Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
FROM golang as build
WORKDIR /app
COPY . .
ENV GO111MODULE=on
ENV GOPROXY=https://goproxy.cn,direct
RUN go mod download
RUN go build -o app
FROM alpine
WORKDIR /app
COPY --from=build /app/app .