Skip to content

Commit

Permalink
modify:dockerfile수정 및 배포오류 해결(#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
KIWONY committed Jul 18, 2022
1 parent 6376d4b commit 5e7ddc9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions conf/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

# 도커에서 같은 네트워크 상의 컨테이너와 통신하는 방법
upstream web {
server web:8000;
}
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ services:
- bash
- -c
- |
python manage.py wait_for_db -t 120
python manage.py migrate
echo yes | python manage.py collectstatic
gunicorn ideaconcert.wsgi:application --bind 0.0.0.0:8000
stdin_open: true
ports:
Expand Down
6 changes: 5 additions & 1 deletion dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@

FROM python:3.9.0

ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1


COPY . /home/ideaconcert

WORKDIR /home/ideaconcert

RUN pip install --upgrade pip

RUN pip install -r requirements.txt

COPY . /home/ideaconcert


0 comments on commit 5e7ddc9

Please sign in to comment.