diversify the flask ports, each flask instance has another port to prevent confusion;
This commit is contained in:
@@ -2,7 +2,7 @@ FROM python:3.8-slim
|
||||
COPY . /app
|
||||
WORKDIR /app
|
||||
RUN pip install -r requirements.txt
|
||||
ENV PORT 5000
|
||||
EXPOSE 5000
|
||||
ENV PORT 5003
|
||||
EXPOSE 5003
|
||||
ENTRYPOINT [ "python" ]
|
||||
CMD [ "x_way_server.py" ]
|
||||
@@ -19,4 +19,4 @@ def api2():
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run()
|
||||
app.run('0.0.0.0', 5004)
|
||||
|
||||
Reference in New Issue
Block a user