mirror of
https://github.com/shouptech/humulus.git
synced 2026-02-03 12:39:42 +00:00
Add docker build files
This commit is contained in:
parent
e1e7cca663
commit
8db04fc3aa
2 changed files with 31 additions and 0 deletions
18
.dockerignore
Normal file
18
.dockerignore
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
.dockerignore
|
||||
Dockerfile
|
||||
__pycache__
|
||||
.pytest_cache
|
||||
.coverage
|
||||
htmlcov
|
||||
dist/
|
||||
build/
|
||||
*.egg-info/
|
||||
.eggs
|
||||
*.pyc
|
||||
*.pyo
|
||||
*.pyd
|
||||
.Python
|
||||
env
|
||||
*.log
|
||||
.git
|
||||
instance
|
||||
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
FROM python:3.7.3-alpine3.9
|
||||
|
||||
ADD . /app/
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN pip install .
|
||||
RUN pip install waitress
|
||||
|
||||
RUN mkdir -p /app/instance
|
||||
ENV HUMULUS_SETTINGS=/app/instance/settings.py
|
||||
|
||||
CMD ["waitress-serve", "--call", "humulus:create_app"]
|
||||
Loading…
Add table
Reference in a new issue