Skip to content

Commit

Permalink
Add a skeleton for flask behind an nginx app for document to text con…
Browse files Browse the repository at this point in the history
…version. See #145
  • Loading branch information
breyten committed Jan 16, 2024
1 parent 7ca6d64 commit ba5b77e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,12 @@ services:
restart: always
networks:
- jodal
texter:
build:
context: ../texter
networks:
- jodal
restart: always
volumes:
esbackups:
driver: local
Expand Down
7 changes: 7 additions & 0 deletions texter/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM tiangolo/uwsgi-nginx-flask:python3.11

COPY ./requirements.txt /app/requirements.txt

RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt

COPY ./app /app
10 changes: 10 additions & 0 deletions texter/app/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from flask import Flask
app = Flask(__name__)

@app.route("/")
def hello():
return "Hello World from Flask"

if __name__ == "__main__":
# Only for debugging while developing
app.run(host='0.0.0.0', debug=True, port=80)
1 change: 1 addition & 0 deletions texter/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PyMuPDF==1.23.14

0 comments on commit ba5b77e

Please sign in to comment.