From c690a226b6a70fcdfe6259b15638a0c7fdecc543 Mon Sep 17 00:00:00 2001 From: cryptooda Date: Mon, 3 Feb 2025 11:50:52 +0700 Subject: [PATCH] Update Dockerfile-web-ui-dev to include Vite build command and COPY src/Managing.WebApp/ in the Dockerfile --- src/Managing.WebApp/Dockerfile-web-ui-dev | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Managing.WebApp/Dockerfile-web-ui-dev b/src/Managing.WebApp/Dockerfile-web-ui-dev index b3b4a2d..ecb1322 100644 --- a/src/Managing.WebApp/Dockerfile-web-ui-dev +++ b/src/Managing.WebApp/Dockerfile-web-ui-dev @@ -23,8 +23,10 @@ RUN npm install -g tailwindcss postcss autoprefixer @tailwindcss/typography # Copy the rest of the app's source code to the container # COPY . . +RUN ls -la COPY src/Managing.WebApp/ /app/ RUN node --max-old-space-size=8192 ./node_modules/.bin/vite build +RUN ls -a app # Build the app RUN npm run build @@ -34,10 +36,6 @@ FROM nginx:alpine # Copy the built app to the NGINX web server directory # COPY --from=0 /app/build /usr/share/nginx/html - -RUN ls -la /app - -# Copy the built Vite application from the builder stage COPY --from=0 /app/dist /usr/share/nginx/html # Expose port 80 for the NGINX web server