Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update to new build image #178

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.6.8-stretch
FROM --platform=linux/amd64 python:3.6.15-bullseye

ENV PYTHONUNBUFFERED 1
WORKDIR /config
Expand All @@ -8,4 +8,4 @@ ADD requirements.txt /config/
RUN pip install -r requirements.txt

WORKDIR /web
ENTRYPOINT ["/web/docker-entrypoint.sh"]
ENTRYPOINT ["/web/docker-entrypoint.sh"]
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ A git repository for PyCon Korea api.
설치하거나 도커를 활용하여 postgresql을 설치합니다.

```sh
$ docker run -d --name postgres -p 5432:5432 postgres
docker run -d --name postgres -p 5432:5432 postgres

```

Expand All @@ -22,11 +22,11 @@ $ docker run -d --name postgres -p 5432:5432 postgres

```bash

$ git clone [email protected]:pythonkr/pyconkr-api.git
$ cd pyconkr-api
git clone [email protected]:pythonkr/pyconkr-api.git
cd pyconkr-api

$ ./manage.py migrate
$ ./manage.py runserver
./manage.py migrate
./manage.py runserver
```


Expand Down
4 changes: 2 additions & 2 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ tail -n 0 -f /logs/*.log &
echo "==== Starting server ====="
gunicorn pyconkr.wsgi:application \
--bind=0.0.0.0:8000 \
--workers 13 \
--threads 256 \
--workers 4 \
--threads 8 \
--worker-connections=5000 \
--max-requests 10000 \
--max-requests-jitter 5 \
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ botocore==1.12.159
certifi==2018.11.29
cffi==1.11.5
chardet==3.0.4
codecov==2.0.15
codecov
coreapi==2.3.3
coreschema==0.0.4
coverage==4.5.2
Expand Down