Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +6 -7
Dockerfile
CHANGED
@@ -20,15 +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 |
# Build the Angular app based on BUILD_ENV
|
25 |
RUN if [ "$BUILD_ENV" = "development" ] ; then \
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
|
33 |
# Add environment info to container
|
34 |
ENV BUILD_ENVIRONMENT=$BUILD_ENV
|
|
|
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 build -- --configuration=development --output-path=dist/flare-ui ; \
|
27 |
+
else \
|
28 |
+
echo "π Building for PRODUCTION..." && \
|
29 |
+
npm run build -- --configuration=production --output-path=dist/flare-ui ; \
|
30 |
+
fi
|
31 |
|
32 |
# Add environment info to container
|
33 |
ENV BUILD_ENVIRONMENT=$BUILD_ENV
|