diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..e911b91 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,7 @@ +**/__pycache__ +.dockerignore +.git* +Dockerfile +README.md +db.sqlite3 +env diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3cbca73 --- /dev/null +++ b/Dockerfile @@ -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"] diff --git a/README.md b/README.md new file mode 100644 index 0000000..664b6fc --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# shiftregister + +