mirror of
https://github.com/usual2970/certimate.git
synced 2025-06-09 05:59:50 +00:00
To optimize Docker image size.
This commit is contained in:
parent
78877d0643
commit
6466d1fb0d
@ -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"]
|
Loading…
x
Reference in New Issue
Block a user