build front

This commit is contained in:
Egor Aristov 2025-02-06 12:52:09 +03:00
parent 540a4a6a00
commit 574a59a4ed
Signed by: egor3f
GPG Key ID: 40482A264AAEC85F

View File

@ -1,5 +1,10 @@
# todo: multi-stage build FROM node:20 AS frontend
# todo: embed frontend to binary
WORKDIR /buildfront
COPY frontend/wizard-vue/package.json frontend/wizard-vue/package-lock.json ./
RUN npm install
COPY frontend/wizard-vue ./
RUN npm run build
FROM golang:1.23 FROM golang:1.23
@ -9,6 +14,7 @@ COPY go.mod go.sum ./
RUN go mod download RUN go mod download
COPY . . COPY . .
COPY --from=frontend /buildfront/dist ./frontend/wizard-vie/dist
RUN go build -o bin/webserver github.com/egor3f/rssalchemy/cmd/webserver RUN go build -o bin/webserver github.com/egor3f/rssalchemy/cmd/webserver
EXPOSE 8080 EXPOSE 8080