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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user