-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4e64bba
commit dff8a9e
Showing
4 changed files
with
40 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
FROM python:3.11-alpine | ||
|
||
RUN apk add bash | ||
|
||
COPY requirements.txt requirements.txt | ||
|
||
RUN pip install -r requirements.txt | ||
|
||
COPY . . | ||
|
||
ARG HAT_DEBUG='False' | ||
ARG HAT_STATIC_ROOT='/static-root' | ||
ARG HAT_ALLOWED_HOSTS='0.0.0.0' | ||
ARG HAT_SQLITE3_PATH='/db.sqlite3' | ||
|
||
|
||
ENV HAT_DEBUG=${HAT_DEBUG} | ||
ENV HAT_SECRET_KEY=${HAT_SECRET_KEY} | ||
ENV HAT_STATIC_ROOT=${HAT_STATIC_ROOT} | ||
ENV HAT_ALLOWED_HOSTS=${HAT_ALLOWED_HOSTS} | ||
ENV HAT_SQLITE3_PATH=${HAT_SQLITE3_PATH} | ||
|
||
EXPOSE 8000/ | ||
|
||
ENTRYPOINT python manage.py migrate \ | ||
&& python manage.py collectstatic --no-input \ | ||
&& honcho start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
web: python -m gunicorn agenda_hat.asgi:application -k uvicorn.workers.UvicornWorker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
django | ||
honcho | ||
uvicorn | ||
gunicorn |