Skip to content

Commit 56952f3

Browse files
committed
Release v1.0.3 - UPD Docker Layer
1 parent eeda048 commit 56952f3

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change Log
22

3+
## [1.0.3] 2023-08-20
4+
### Changes
5+
6+
- Docker:
7+
- Replace Django Server with Gunicorn
8+
39
## [1.0.2] 2023-08-15
410
### Changes
511

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ COPY . .
66

77
# Start Server
88
EXPOSE 5000
9-
CMD ["python", "manage.py", "runserver", "0.0.0.0:5000"]
9+
CMD ["gunicorn", "--config", "gunicorn-cfg.py", "core.wsgi"]

gunicorn-cfg.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
bind = '0.0.0.0:5000'
2+
workers = 1
3+
accesslog = '-'
4+
loglevel = 'debug'
5+
capture_output = True
6+
enable_stdio_inheritance = True

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
django
2+
gunicorn==20.1.0

0 commit comments

Comments
 (0)