i start learning docker and i make my fist docker compose file wich i connect flask app container with mysql database container ,i build my compose file without any problem but when i try to access to my app ,it gives me this erros : AttributeError: ‘NoneType’ object has no attribute ‘close’ so it seems ..
I started learning docker and I made my first docker compose file which I use to connect a flask app container with a MySQL database container. I build my compose file without any problems, but when I try to access to my app, it gives me this error: AttributeError: ‘NoneType’ object has no attribute ‘close’ ..
please see this link to see the folder structure: https://drive.google.com/file/d/1KceimcgGMN68Z0gDet2G6SzZIQUhkQ2G/view?usp=sharing Hi, I am having issue with running my flask app on docker container, please help. this is the Dockerfile code: from alpine:latest RUN apk add –no-cache python3.9.7-dev && apk add –no-cache py3-pip && pip install –upgrade pip WORKDIR /NewBackend COPY . /NewBackend RUN pip3 –no-cache-dir ..
I am trying to use connexion/Flask to return a base64-encoded image generated by PIL/pillow in a HTTP Response. Having upgraded to python3.7 from python2.7, that part of the code works unaltered. However, when running inside Docker (python3.7-slim), I get the time-honoured TypeError: Object of type bytes is not JSON serializable (full Traceback below). The encoding ..
I am trying to deploy my python flask code to my Linux server and I am following the instruction provided in this link and I modified the required files as my project has app.py and static and templates folders. requirements.txt is already present. here are the contents of modified files: uwsgi.ini [uwsgi] module = app ..
I am trying to incorporate docker containers into my flask app. I cannot get pytests to run using docker. I think the problem is with the test suite creating a postgres test database but I am not sure. I get an error message stating unable to start container with a randomly assigned ID. I am ..
I’m running a flask web server from inside a docker container, and using an environment file to set the FLASK_APP variable. Whenever I try to start the server, I get an error saying FLASK_APP wasn’t set correctly. I think this has to do with the commands in my Dockerfile, because when I copy the environment ..
I have a flask app that I am loading through Docker, and when I try and access the application on localhost:8000 I get the error message in the subject line. I believe the issue is that the flask application is not recognizing my application’s SECRET_KEY, but I’m not sure how to fix it. Here is ..
I have a k8s deployment which run a Flask app, and I require that app to now his own application name (which is in metadata.labels.app). Then I would like to be able to get that information from the running pod, is it possible ? I already tried to bash into the running pod and run ..
I have created a flask api and hosted it as a docker image. The dockerfile of the image looks like this: FROM pymesh/pymesh:latest WORKDIR /apiapp RUN pip install flask EXPOSE 5000 COPY . /apiapp ENV FLASK_APP=feature_extract_api.py # ENTRYPOINT [‘/bin/bash’] CMD ["flask", "run", "–host", "0.0.0.0"] The app.run() inside the original python file looks like this: if ..