reCoreD-UI/Dockerfile

15 lines
264 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
2024-04-23 06:57:06 +00:00
COPY --from=web /src .
2024-04-19 07:10:08 +00:00
RUN go get . && go generate ./... && go build .
FROM scratch
2024-04-23 06:57:06 +00:00
COPY --from=server /src/reCoreD-UI .
2024-04-19 07:10:08 +00:00
ENTRYPOINT [ '/reCoreD-UI' ]