reCoreD-UI/Dockerfile

15 lines
266 B
Docker
Raw Normal View History

2024-04-19 07:10:08 +00:00
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' ]