Spaces:
Build error
Build error
Update Dockerfile for correct directory structure
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
@@ -33,7 +33,7 @@ RUN if [ ! -f next.config.js ]; then \
|
|
33 |
echo "module.exports = { reactStrictMode: true };" > next.config.js; \
|
34 |
fi
|
35 |
|
36 |
-
# Build the application
|
37 |
RUN NODE_PATH=/usr/local/lib/node_modules yarn build
|
38 |
|
39 |
# Python builder stage
|
@@ -92,9 +92,9 @@ COPY --from=web-builder --chown=user /app/web/package.json $HOME/app/web/package
|
|
92 |
ENV FLASK_APP=app.py \
|
93 |
EDITION=SELF_HOSTED \
|
94 |
DEPLOY_ENV=PRODUCTION \
|
95 |
-
CONSOLE_API_URL=http://127.0.0.1:
|
96 |
CONSOLE_WEB_URL=http://127.0.0.1:3000 \
|
97 |
-
SERVICE_API_URL=http://127.0.0.1:
|
98 |
APP_WEB_URL=http://127.0.0.1:3000 \
|
99 |
NODE_ENV=production
|
100 |
|
|
|
33 |
echo "module.exports = { reactStrictMode: true };" > next.config.js; \
|
34 |
fi
|
35 |
|
36 |
+
# Build the application with standalone output
|
37 |
RUN NODE_PATH=/usr/local/lib/node_modules yarn build
|
38 |
|
39 |
# Python builder stage
|
|
|
92 |
ENV FLASK_APP=app.py \
|
93 |
EDITION=SELF_HOSTED \
|
94 |
DEPLOY_ENV=PRODUCTION \
|
95 |
+
CONSOLE_API_URL=http://127.0.0.1:7860 \
|
96 |
CONSOLE_WEB_URL=http://127.0.0.1:3000 \
|
97 |
+
SERVICE_API_URL=http://127.0.0.1:7860 \
|
98 |
APP_WEB_URL=http://127.0.0.1:3000 \
|
99 |
NODE_ENV=production
|
100 |
|