This commit is contained in:
Sense T
2024-04-19 15:10:08 +08:00
parent af9d966376
commit a394259f0a
11 changed files with 125 additions and 104 deletions

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM node AS web
WORKDIR /src
COPY . .
RUN cd web && npm i && npm run build
FROM golang as server
WORKDIR /src
COPY --stage web /src .
RUN go get . && go generate ./... && go build .
FROM scratch
COPY --stage server /src/reCoreD-UI .
ENTRYPOINT [ '/reCoreD-UI' ]