diff --git a/Dockerfile b/Dockerfile index a940f4e..d8bd5f0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,8 +4,10 @@ COPY package*.json ./ RUN mkdir frontend RUN mkdir lstDocs +RUN mkdir controller COPY frontend/package*.json ./frontend COPY lstDocs/package*.json ./lstDocs +COPY controller/index.html ./controller RUN npm install RUN npm run install:front @@ -17,6 +19,7 @@ WORKDIR /app COPY --from=deps /app/node_modules ./node_modules COPY --from=deps /app/frontend/node_modules ./frontend/node_modules COPY --from=deps /app/lstDocs/node_modules ./lstDocs/node_modules +COPY --from=deps /app/controller/index.html ./controller/index.html COPY . ./ RUN npm run build:app RUN npm run build:front @@ -29,7 +32,7 @@ COPY --from=builder /app/node_modules ./node_modules COPY --from=builder /app/dist ./dist COPY --from=builder /app/frontend/dist ./frontend/dist COPY --from=builder /app/lstDocs/build ./lstDocs/build - +COPY --from=deps /app/controller/index.html ./controller/index.html ENV NODE_ENV=production diff --git a/docker-compose.yml b/docker-compose.yml index f86ddfa..6e0f94a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,8 @@ services: dockerfile: Dockerfile container_name: lst_app ports: - - "${VITE_PORT:-4200}:4200" + #- "${VITE_PORT:-4200}:4200" + - "4000:4200" environment: - NODE_ENV=devolpment - DATABASE_HOST=host.docker.internal