add docker support

This commit is contained in:
yoan
2024-08-28 00:37:08 +08:00
parent 382b41bae8
commit ec25d092d7
3 changed files with 7 additions and 10 deletions

View File

@@ -1,17 +1,8 @@
FROM node:20-alpine as build-ui
WORKDIR /app
COPY ../. /app/
RUN npm --prefix=./ui ci && npm --prefix=./ui run build
FROM golang:1.22-alpine
WORKDIR /app
COPY ../. /app/
COPY --from=build-ui /app/ui/dist /app/ui/
RUN go build -o certimate