This commit is contained in:
yoan
2024-10-21 07:34:33 +08:00
parent 0037659462
commit 0095600615
5 changed files with 6 additions and 675 deletions

View File

@@ -9,6 +9,7 @@ RUN \
npm install && \
npm run build
FROM golang:1.22-alpine AS builder
WORKDIR /app
@@ -16,14 +17,17 @@ WORKDIR /app
COPY ../. /app/
RUN rm -rf /app/ui/dist
COPY --from=front-builder /app/ui/dist /app/ui/dist
RUN go build -o certimate
FROM alpine:latest
WORKDIR /app
COPY --from=builder /app/certimate .
ENTRYPOINT ["./certimate", "serve", "--http", "0.0.0.0:8090"]
ENTRYPOINT ["./certimate", "serve", "--http", "0.0.0.0:8090"]