Skip to content

Commit 4d5d62f

Browse files
authored
Run gunicorn directly as the container CMD (#117) (#123)
1 parent 01399fd commit 4d5d62f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.meta/deploy/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ COPY ../../README.md .
1616
RUN ["poetry", "install"]
1717

1818
# run the app
19-
CMD ["make", "wakeup_anna"]
19+
# 의존성은 빌드 시 이미 설치됨 — 부팅 시 재설치 없이 곧바로 서버를 띄워야
20+
# fly가 머신 시작 직후 검사하는 리스닝 소켓 체크(0.0.0.0:8080)를 통과한다
21+
CMD ["poetry", "run", "gunicorn", "--chdir", "src", "anna:flask_app", "--bind", "0.0.0.0:8080", "--workers", "1", "--threads", "8", "--timeout", "120"]

0 commit comments

Comments
 (0)