Add docker support

This commit is contained in:
yoan
2024-08-28 01:24:03 +08:00
parent 852d4fb358
commit 812050159f
2 changed files with 15 additions and 8 deletions

11
Dockerfile_build Normal file
View File

@@ -0,0 +1,11 @@
FROM golang:1.22-alpine
ENV GOPROXY=https://goproxy.cn
WORKDIR /app
COPY ../. /app/
RUN go build -o certimate
ENTRYPOINT ["./certimate", "serve", "--http", "0.0.0.0:8090"]