-
I'm trying to dockerise my react-flask application and for some reason the flask container is not accepting requests. Dockerfile: FROM tiangolo/meinheld-gunicorn-flask:python3.7
# RUN mkdir -p /app
COPY ./server /app
RUN pip install -r /app/requirements.txt
RUN pip install greenlet==0.4.17 Docker Compose: backend:
restart: always
container_name: backend
build:
context: ./backend
dockerfile: Dockerfile.deploy
environment:
PORT: "5000"
LOG_LEVEL: "debug"
expose:
- 5000 Request Error: Container log dump:
I'm not sure if this is a bug or something I'm doing wrong, please help |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thanks for the patience with my reply!
This makes me think that your local NodeJS is the thing that is trying to re-send a request to the server. It should be your frontend that communicates with the server, there probably shouldn't be a NodeJS proxy in the middle. Also, it seems it's most probably an error in the frontend setup, not in the backend with this Docker image. |
Beta Was this translation helpful? Give feedback.
Thanks for the patience with my reply!
This makes me think that your local NodeJS is the thing that is trying to re-send a request to the server. It should be your frontend that communicates with the server, there probably shouldn't be a NodeJS proxy in the middle.
Also, it seems it's most probably an error in the frontend setup, not in the backend with this Docker image.