Fixed dockerfile
This commit is contained in:
parent
149ce87b8f
commit
352f1a3e23
@ -13,10 +13,8 @@ RUN npm config set unsafe-perm true && \
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Install
|
# Install & build
|
||||||
RUN if [ ! -d "dist" ] && [ ! -d "node_modules" ]; then npm install; fi
|
RUN if [ ! -d "dist" ] && [ ! -d "node_modules" ]; then npm install; fi \
|
||||||
|
|
||||||
# Build
|
|
||||||
if [ ! -d "dist" ]; then npm run build; fi
|
if [ ! -d "dist" ]; then npm run build; fi
|
||||||
|
|
||||||
# Use Nginx to serve
|
# Use Nginx to serve
|
||||||
|
Loading…
Reference in New Issue
Block a user