Fixed dockerfile

This commit is contained in:
Zakary Timson 2022-05-02 21:54:25 -04:00
parent 352f1a3e23
commit 5763542a04

View File

@ -14,8 +14,8 @@ WORKDIR /app
COPY . . COPY . .
# Install & build # Install & build
RUN if [ ! -d "dist" ] && [ ! -d "node_modules" ]; then npm install; fi \ RUN if [ ! -d "dist" ] && [ ! -d "node_modules" ]; then npm install; fi
if [ ! -d "dist" ]; then npm run build; fi RUN if [ ! -d "dist" ]; then npm run build; fi
# Use Nginx to serve # Use Nginx to serve
FROM nginx:1.20-alpine FROM nginx:1.20-alpine