diff --git a/PostFundManagement.ConsoleUI/Dockerfile b/PostFundManagement.ConsoleUI/Dockerfile index cf1d6c8..2f50783 100644 --- a/PostFundManagement.ConsoleUI/Dockerfile +++ b/PostFundManagement.ConsoleUI/Dockerfile @@ -4,13 +4,13 @@ FROM node:20-alpine AS builder WORKDIR /app # Copy dependency definitions -COPY package*.json ./ +COPY PostFundManagement.ConsoleUI/package*.json ./ # Install dependencies RUN npm ci || npm install # Copy application source -COPY . . +COPY PostFundManagement.ConsoleUI/ . # Build Vite application for production RUN npm run build @@ -22,11 +22,11 @@ FROM nginx:alpine COPY nginx.conf /etc/nginx/conf.d/default.conf # Copy compiled static assets from build stage -COPY --from=builder /app/dist /usr/share/nginx/html +COPY --from=builder /app/PostFundManagement.ConsoleUI/dist /usr/share/nginx/html # Copy entrypoint script for dynamic runtime environment variables -COPY docker-entrypoint.sh /docker-entrypoint.sh -RUN chmod +x /docker-entrypoint.sh +COPY docker-entrypoint.sh /app/PostFundManagement.ConsoleUI/docker-entrypoint.sh +RUN chmod +x /app/PostFundManagement.ConsoleUI/docker-entrypoint.sh # Expose port 3000 EXPOSE 3000