build front
This commit is contained in:
parent
540a4a6a00
commit
574a59a4ed
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user