Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +3 -8
Dockerfile
CHANGED
|
@@ -20,19 +20,14 @@ COPY flare-ui/ ./
|
|
| 20 |
# β
Clean Angular cache before build
|
| 21 |
RUN rm -rf .angular/ dist/ node_modules/.cache/
|
| 22 |
|
|
|
|
| 23 |
# Build the Angular app based on BUILD_ENV
|
| 24 |
RUN if [ "$BUILD_ENV" = "development" ] ; then \
|
| 25 |
echo "π§ Building for DEVELOPMENT..." && \
|
| 26 |
-
npm run
|
| 27 |
-
--source-map=true \
|
| 28 |
-
--named-chunks=true \
|
| 29 |
-
--vendor-chunk=true \
|
| 30 |
-
--output-hashing=none \
|
| 31 |
-
--output-path=dist/flare-ui ; \
|
| 32 |
else \
|
| 33 |
echo "π Building for PRODUCTION..." && \
|
| 34 |
-
npm run build -- --
|
| 35 |
-
--output-path=dist/flare-ui ; \
|
| 36 |
fi
|
| 37 |
|
| 38 |
# Add environment info to container
|
|
|
|
| 20 |
# β
Clean Angular cache before build
|
| 21 |
RUN rm -rf .angular/ dist/ node_modules/.cache/
|
| 22 |
|
| 23 |
+
# Build the Angular app based on BUILD_ENV
|
| 24 |
# Build the Angular app based on BUILD_ENV
|
| 25 |
RUN if [ "$BUILD_ENV" = "development" ] ; then \
|
| 26 |
echo "π§ Building for DEVELOPMENT..." && \
|
| 27 |
+
npm run watch -- --output-path=dist/flare-ui ; \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
else \
|
| 29 |
echo "π Building for PRODUCTION..." && \
|
| 30 |
+
npm run build -- --output-path=dist/flare-ui ; \
|
|
|
|
| 31 |
fi
|
| 32 |
|
| 33 |
# Add environment info to container
|