Refactor Dockerfile-web-ui-dev to include Vite build command and COPY src/Managing.WebApp/ in the Dockerfile

This commit is contained in:
2025-02-03 12:00:21 +07:00
parent c690a226b6
commit 17114ac787

View File

@@ -24,9 +24,8 @@ RUN npm install -g tailwindcss postcss autoprefixer @tailwindcss/typography
# Copy the rest of the app's source code to the container # Copy the rest of the app's source code to the container
# COPY . . # COPY . .
RUN ls -la RUN ls -la
COPY src/Managing.WebApp/ /app/ COPY src/Managing.WebApp/ .
RUN node --max-old-space-size=8192 ./node_modules/.bin/vite build RUN node --max-old-space-size=8192 ./node_modules/.bin/vite build
RUN ls -a app
# Build the app # Build the app
RUN npm run build RUN npm run build