Update Dockerfile
Some checks failed
Some checks failed
This commit is contained in:
parent
525f1e2762
commit
8cd4193971
@ -17,7 +17,7 @@ COPY . .
|
|||||||
RUN if [ ! -d "dist" ] && [ ! -d "node_modules" ]; then npm install; fi
|
RUN if [ ! -d "dist" ] && [ ! -d "node_modules" ]; then npm install; fi
|
||||||
|
|
||||||
# Build
|
# Build
|
||||||
RUN BUILD_MODE=$([ "$NODE_ENV" = "prod" ] && echo "dynmaic-prod" || echo "dynamic") && \
|
RUN BUILD_MODE=$([ "$NODE_ENV" = "prod" ] && echo "prod" || echo "dev") && \
|
||||||
if [ ! -d "dist" ]; then npm run "build:$BUILD_MODE"; fi
|
if [ ! -d "dist" ]; then npm run "build:$BUILD_MODE"; fi
|
||||||
|
|
||||||
# Use Nginx to serve
|
# Use Nginx to serve
|
||||||
|
Loading…
Reference in New Issue
Block a user