Skip to content

Commit

Permalink
still looking for the best versions of packages and python
Browse files Browse the repository at this point in the history
  • Loading branch information
github-anis-snoussi committed May 3, 2021
1 parent 00516d0 commit 342d380
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,13 @@ services:
networks:
- net

screenpoint:
container_name: catcat-screenpoint
build: ./screenpoint
ports:
- 8081:5000
networks:
- net

networks:
net:
6 changes: 6 additions & 0 deletions screenpoint/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM python:3.8-slim-buster
WORKDIR /app
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
COPY . .
CMD [ "python3", "-m" , "flask", "run", "--host=0.0.0.0"]
12 changes: 12 additions & 0 deletions screenpoint/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from flask import Flask
import os

app = Flask(__name__)

@app.route("/")
def hello():
return "Flask inside Docker!!"


if __name__ == "__main__":
app.run(debug=True,host='0.0.0.0',port=5000)
2 changes: 2 additions & 0 deletions screenpoint/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
flask
screenpoint

0 comments on commit 342d380

Please sign in to comment.