This repository was archived by the owner on Nov 21, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ services:
88 volumes :
99 - ./server:/app
1010 ports :
11- - 3000:5000
11+ - 3000:3000
1212 frontend :
1313 volumes :
1414 - ./frontend:/app
Original file line number Diff line number Diff line change 11FROM node:12-stretch
2- # install MFE certs
32# build the container
43RUN npm install -g @vue/cli
54
65WORKDIR /app
76COPY ./package*.json ./
8- RUN npm install
7+ RUN npm install --production --no-progress
98RUN npm rebuild node-sass
109COPY . .
1110ENV VUE_APP_FLASK_HOST backend
Original file line number Diff line number Diff line change 99 "e2e" : " vue-cli-service e2e " ,
1010 "lint" : " vue-cli-service lint" ,
1111 "flask" : " venv/bin/python server/__init__.py" ,
12- "gunicorn" : " venv/bin/gunicorn --error-logfile - --worker-class eventlet -w 1 server:app -b 0.0.0.0:5000 " ,
12+ "gunicorn" : " venv/bin/gunicorn --error-logfile - --worker-class eventlet -w 1 server:app -b 0.0.0.0:3000 " ,
1313 "setup" : " venv/bin/pip install -r requirements.txt && npm install" ,
1414 "e2e:open" : " vue-cli-service e2e:open" ,
1515 "test:unit" : " vue-cli-service test:unit"
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ module.exports = {
2121 } ,
2222 proxy : {
2323 '/socket.io' : {
24- target : `http://${ process . env . VUE_APP_FLASK_HOST } :3000 ` ,
24+ target : `http://${ process . env . VUE_APP_FLASK_HOST } :5000 ` ,
2525 ws : true ,
2626 changeOrigin : true
2727 } ,
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ COPY requirements.txt requirements.txt
77RUN pip install -r requirements.txt
88COPY . .
99ENV HOST 0.0.0.0
10- EXPOSE 5000
10+ EXPOSE 3000
1111CMD ["python" , "app.py" ]
You can’t perform that action at this time.
0 commit comments