mirror of
https://github.com/wahyd4/SAI2.git
synced 2026-08-09 05:06:05 +10:00
Update next.config.mjs and package.json
This commit is contained in:
+1
-1
@@ -4,12 +4,12 @@ WORKDIR /app
|
||||
|
||||
# Install dependencies
|
||||
COPY ./web/package*.json ./
|
||||
ENV NODE_ENV production
|
||||
RUN npm install
|
||||
COPY ./web .
|
||||
|
||||
# Compile Next.js and configure distDir
|
||||
RUN sed -i 's/distDir:.*/distDir: process.env.NEXT_DIST_DIR || ".\/ui"/' next.config.mjs
|
||||
ENV NODE_ENV production
|
||||
ENV NEXT_DIST_DIR ./NEXT_BUILD
|
||||
RUN npm run build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user