Skip to content

Commit b1fa36d

Browse files
authored
Merge pull request #1 from jpvg10/main
Change port to 9000
2 parents f2c1c21 + a4512b2 commit b1fa36d

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@ COPY app/ ./app
1515
# Clean up the Python compilation cache
1616
RUN find ./ -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete
1717

18+
ENV PORT=9000
19+
1820
CMD invoke -c prod_tasks prodserver -p $PORT

app/server.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
def start_dev_server():
19-
app.run("0.0.0.0", port=8080, debug=True)
19+
app.run("0.0.0.0", port=9000, debug=True)
2020

2121

2222
if __name__ == "__main__":

docker-compose-dev.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
context: .
77
dockerfile: Dockerfile
88
ports:
9-
- 8080:8080
9+
- 9000:9000
1010
environment:
1111
API_KEY: foo
12-
PORT: 8080
12+
PORT: 9000

prod_tasks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
@task
5-
def prodserver(context, daemon=False, unbuffered=True, host='0.0.0.0', port=8080, workers=2, timeout=3600):
5+
def prodserver(context, daemon=False, unbuffered=True, host='0.0.0.0', port=9000, workers=2, timeout=3600):
66
daemon = ' --daemon' if daemon is True else ''
77
unbuffered = 'TRUE' if unbuffered is True else 'FALSE'
88
app = 'server:app'

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ flask
44
flask-restx
55
flask-swagger-ui
66
gunicorn
7+
werkzeug==2.0.*

0 commit comments

Comments
 (0)