reCoreD-UI/Dockerfile
2024-04-23 15:44:27 +08:00

15 lines
314 B
Docker

FROM node AS web
WORKDIR /src
COPY . .
RUN cd web && npm i && npm run build
FROM golang as server
WORKDIR /src
COPY --from=web /src .
RUN go get . && go generate ./... && go build -trimpath -ldflags '-w -s -X main.Version=v1.0.0' .
FROM scratch
COPY --from=server /src/reCoreD-UI .
ENTRYPOINT [ '/reCoreD-UI' ]