diff options
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -2,10 +2,10 @@ FROM node:22-alpine AS frontend-builder WORKDIR /app -COPY package.json package-lock.json ./ +COPY frontend/package.json frontend/package-lock.json ./ RUN npm install -COPY . ./ +COPY frontend/ ./ RUN npm run build ########################################## @@ -15,11 +15,11 @@ FROM golang:1.23-alpine AS backend-builder WORKDIR /app RUN apk update && apk add --no-cache build-base sqlite -COPY go.mod go.sum ./ +COPY backend/go.mod backend/go.sum ./ RUN go mod download -COPY . ./ -COPY --from=frontend-builder /app/static/style.css ./static/style.css +COPY backend/ ./ +COPY --from=frontend-builder /app/dist/style.css ./static/style.css RUN CGO_ENABLED=1 GOOS=linux go build -o feedaka main.go ########################################## |
