refactor: reorganize project structure and update paths for backend and frontend
This commit is contained in:
1 parent
6c1ea2da47
commit
64d22d0aac
11 files changed
+120
-112
No files matched your search
+7
-7
@@ -1,16 +1,16 @@
|
||||
FROM node:22-alpine AS webui-builder
|
||||
WORKDIR /webui
|
||||
COPY webui/package*.json ./
|
||||
FROM node:22-alpine AS frontend-builder
|
||||
WORKDIR /frontend
|
||||
COPY frontend/package*.json ./
|
||||
RUN npm ci
|
||||
COPY webui/ ./
|
||||
COPY frontend/ ./
|
||||
RUN npm run build
|
||||
|
||||
FROM golang:1.26-alpine AS builder
|
||||
WORKDIR /app
|
||||
COPY go.mod go.sum ./
|
||||
COPY backend/go.mod backend/go.sum ./
|
||||
RUN go mod download
|
||||
COPY *.go ./
|
||||
COPY --from=webui-builder /webui/build ./web
|
||||
COPY backend/*.go ./
|
||||
COPY --from=frontend-builder /frontend/build ./web
|
||||
RUN apk add --no-cache ca-certificates && \
|
||||
CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o server .
|
||||
|
||||
|
||||
Reference in new issue
Block a user