diff --git a/docker-compose.yaml b/docker-compose.yaml index 6a76a36..dcf78bc 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -37,10 +37,18 @@ services: - ./nodejs/src/:/work ports: - 5502:5000 - python: + python: #docker run -it -v ${PWD}:/work -w /work -p 5003:5000 aimvector/python:1.0.0 /bin/sh container_name: python image: cruxlight/python:1.0.0 build: ./python + working_dir: /work + entrypoint: /bin/sh + stdin_open: true + tty: true + volumes: + - ./python/src/:/work + ports: + - 5503:5000 first-public-dockerhub-image: container_name: first-public-dockerhub-image image: cruxlight/first-public-dockerhub-image:latest diff --git a/python/Dockerfile b/python/Dockerfile index caac651..6ac7319 100644 --- a/python/Dockerfile +++ b/python/Dockerfile @@ -1 +1,3 @@ -FROM python:3.7.3-alpine3.9 \ No newline at end of file +FROM python:3.7.3-alpine3.9 + +RUN pip install flask \ No newline at end of file diff --git a/python/src/server.py b/python/src/server.py new file mode 100644 index 0000000..a86beaa --- /dev/null +++ b/python/src/server.py @@ -0,0 +1,6 @@ +from flask import Flask +app = Flask(__name__) + +@app.route("/") +def hello(): + return "Hello World!" \ No newline at end of file