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-23 07:30:13 +00:00
|
|
|
RUN go get . && go generate ./... && go build -trimpath -ldflags '-w -s -X main.Version=v1.0.0' .
|
2024-04-19 07:10:08 +00:00
|
|
|
|
|
|
|
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' ]
|