Skip to content

Commit d5d9127

Browse files
committed
Run production with gunicorn
1 parent b40ff09 commit d5d9127

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ ENV PYTHONUNBUFFERED 1
99
COPY requirements.txt .
1010
RUN pip install --upgrade pip
1111
RUN pip install --no-cache-dir -r requirements.txt
12+
RUN pip install --no-cache-dir gunicorn==23.0.0
1213
COPY . /app
1314

1415
EXPOSE 5000

Diff for: entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ while true; do
88
echo Deploy command failed, retrying in 5 secs...
99
sleep 5
1010
done
11-
flask run -h 0.0.0.0
11+
gunicorn -b :5000 app:app

0 commit comments

Comments
 (0)