mirror of
https://github.com/usual2970/certimate.git
synced 2025-08-17 23:01:45 +00:00
To optimize Docker image size.
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
FROM ubuntu:latest
|
||||
|
||||
FROM golang:1.22-alpine as builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY certimate /app/certimate
|
||||
COPY ../. /app/
|
||||
|
||||
RUN go build -o certimate
|
||||
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=builder /app/certimate .
|
||||
|
||||
ENTRYPOINT ["./certimate", "serve", "--http", "0.0.0.0:8090"]
|
Reference in New Issue
Block a user