File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,10 @@ RUN npm run build
1717# runtime
1818FROM base AS runtime
1919
20- COPY --from=builder /app/backend/dist ./dist
20+ COPY --from=builder /app/backend/dist ./backend/ dist
2121COPY --from=builder /app/package.json ./
2222COPY --from=builder /app/node_modules ./node_modules
2323
24- EXPOSE 3000
24+ EXPOSE 5000
2525
2626CMD ["npm" , "start" ]
Original file line number Diff line number Diff line change @@ -19,12 +19,14 @@ services:
1919 - " 5000:5000"
2020
2121 frontend :
22+ env_file :
23+ - .env
2224 build :
2325 context : ./frontend
2426 dockerfile : Dockerfile
2527 target : runtime
2628 args :
27- VITE_BACKEND_URL : http://localhost:5000
29+ VITE_BACKEND_URL : ${VITE_BACKEND_URL}
2830 VITE_TIMEOUT : 90000
2931 container_name : pagelm-frontend
3032 depends_on :
You can’t perform that action at this time.
0 commit comments