pythonapi (latest)
Published 2 years ago by jesper.martinsson
Installation
docker pull git.systementor.se/jesper.martinsson/pythonapi:latestsha256:acf61ad379b958851d032fb59da7ba363037a7fe76ddc641c1e70680028f777aImage Layers
| ADD file:37a76ec18f9887751cd8473744917d08b7431fc4085097bb6a09d81b41775473 in / |
| CMD ["/bin/sh"] |
| RUN /bin/sh -c apk add python3 && apk add py-pip # buildkit |
| COPY src . # buildkit |
| RUN /bin/sh -c pip install -r requirements.txt --break-system-packages # buildkit |
| ENV MONGO_URI=mongodb://root:rootpassword@192.168.68.114:27017/?authMechanism=DEFAULT |
| EXPOSE map[8080/tcp:{}] |
| CMD ["python3" "-m" "flask" "run" "--host=0.0.0.0" "--port=8080"] |