Skip to content

Commit

Permalink
fix: Build Node project in development mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Feb 9, 2025
1 parent 45dbf0b commit fd12353
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile.custom
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,12 @@ RUN CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -a -installsuffix c
COPY ./CasaOS-LocalStorage/build/sysroot/etc/casaos/local-storage.conf.sample /etc/casaos/local-storage.conf

############################################################################################################
# Build the Go binary for the UI
# Build the Node project for the UI
############################################################################################################
FROM --platform=$BUILDPLATFORM node:lts-slim AS builder-casaos-ui

ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
ENV NODE_ENV=production

WORKDIR /app
#same version as the one in CasaOS-UI package.json
Expand Down

0 comments on commit fd12353

Please sign in to comment.