refactor(docker): pass the port instead of getting form .env

commented out the env incase we go back to this way later and still an option
This commit is contained in:
2025-09-07 15:33:55 -05:00
parent 2aca7e9a0e
commit ab5af87362
2 changed files with 6 additions and 2 deletions

View File

@@ -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