update actions,fix something

This commit is contained in:
yoan
2024-10-20 13:00:27 +08:00
parent 24192b61c1
commit c45ad3c901
6 changed files with 10 additions and 11 deletions

29
Dockerfile Normal file
View File

@@ -0,0 +1,29 @@
FROM node:20-alpine3.19 AS front-builder
WORKDIR /app
COPY . /app/
RUN \
cd /app/ui && \
npm install && \
npm run build
FROM golang:1.22-alpine AS builder
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"]