diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..fff6c51 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +# start from an official image +FROM python:3.8-slim + +ENV PYTHONUNBUFFERED 1 + +RUN mkdir /app + +WORKDIR /app + +COPY . /app + +RUN pip install -r requirements.txt diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..78cb86e --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: "3.9" + +services: + web: + build: . + command: sh -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000" + volumes: + - .:/code + ports: + - "99:8000" diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..68c906e --- /dev/null +++ b/requirements.txt @@ -0,0 +1,40 @@ +# +# These requirements were autogenerated by pipenv +# To regenerate from the project's Pipfile, run: +# +# pipenv lock --requirements +# + +-i https://pypi.python.org/simple +asgiref==3.4.1 +certifi==2021.5.30 +cffi==1.14.6 +charset-normalizer==2.0.3; python_version >= '3' +coreapi==2.3.3 +coreschema==0.0.4 +cryptography==3.4.7 +defusedxml==0.7.1 +django-cors-headers==3.7.0 +django-templated-mail==1.1.1 +django==3.2.5 +djangorestframework-simplejwt==4.7.2 +djangorestframework==3.12.4 +djoser==2.1.0 +idna==3.2; python_version >= '3' +itypes==1.2.0 +jinja2==3.0.1 +markupsafe==2.0.1 +oauthlib==3.1.1 +pillow==8.3.1 +pycparser==2.20 +pyjwt==2.1.0 +python3-openid==3.2.0 +pytz==2021.1 +requests-oauthlib==1.3.0 +requests==2.26.0 +six==1.16.0 +social-auth-app-django==4.0.0 +social-auth-core==4.1.0 +sqlparse==0.4.1 +uritemplate==3.0.1 +urllib3==1.26.6