To optimize Docker image size.

This commit is contained in:
yoan
2024-08-30 22:25:01 +08:00
parent 51d5c24ef3
commit 48bcd32268
3 changed files with 18 additions and 7 deletions

View File

@@ -1,10 +1,8 @@
FROM golang:1.22-alpine
FROM alpine:3.20
WORKDIR /app
COPY ../. /app/
RUN go build -o certimate
COPY certimate /app/certimate
ENTRYPOINT ["./certimate", "serve", "--http", "0.0.0.0:8090"]