2
0
Fork 0

Add Dockerfile

This commit is contained in:
Luca 2022-04-13 10:14:13 +02:00
parent 0c4b1684d3
commit d4e795c07d
3 changed files with 25 additions and 0 deletions

7
.dockerignore Normal file
View File

@ -0,0 +1,7 @@
**/__pycache__
.dockerignore
.git*
Dockerfile
README.md
db.sqlite3
env

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM python:3.10-alpine3.15
WORKDIR /opt/shiftregister
RUN pip install --no-cache-dir gunicorn
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN python manage.py collectstatic
EXPOSE 8000
ENTRYPOINT ["gunicorn", "shiftregister.wsgi"]

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# shiftregister