Update Dockerfile-web-ui-dev to include Vite build command and COPY src/Managing.WebApp/ in the Dockerfile
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user