Browse Source

added requ.txt and dockerfiles

master
Esther Kleinhenz 6 years ago
parent
commit
3b9f4c33f2
3 changed files with 62 additions and 0 deletions
  1. 19
    0
      Dockerfile
  2. 11
    0
      docker-compose.yml
  3. 32
    0
      requirements.txt

+ 19
- 0
Dockerfile View File

# The first instruction is what image we want to base our container on
# We Use an official Python runtime as a parent image
FROM python:3.6

# The enviroment variable ensures that the python output is set straight
# to the terminal with out buffering it first
ENV PYTHONUNBUFFERED 1

# create root directory for our project in the container
RUN mkdir /esther_kleinhenz_ba

# Set the working directory to /esther_kleinhenz_ba
WORKDIR /esther_kleinhenz_ba

# Copy the current directory contents into the container at /esther_kleinhenz_ba
ADD . /esther_kleinhenz_ba/

# Install any needed packages specified in requirements.txt
RUN pip install -r requirements.txt

+ 11
- 0
docker-compose.yml View File

version: '3'

services:
web:
build: .
command: bash -c "python manage.py makemigrations && python manage.py migrate && python manage.py runserver 0.0.0.0:8000"
container_name: esther_kleinhenz_ba
volumes:
- .:/esther_kleinhenz_ba
ports:
- "8000:8000"

+ 32
- 0
requirements.txt View File

amqp==1.4.9
anyjson==0.3.3
astroid==1.6.5
autopep8==1.3.5
billiard==3.3.0.23
celery==3.1.26.post2
croniter==0.3.25
Django==2.1.2
django-celery==3.2.2
django-classy-tags==0.8.0
django-debug-toolbar==1.10.1
django-hitcount==1.3.0
django-post-office==3.1.0
django-taggit==0.23.0
django-taggit-templatetags2==1.6.1
isort==4.3.4
jsonfield==2.0.2
kombu==3.0.37
lazy-object-proxy==1.3.1
ldap3==2.5
mccabe==0.6.1
pyasn1==0.4.3
pyasn1-modules==0.2.2
pycodestyle==2.4.0
pyldap==3.0.0.post1
pylint==1.9.2
python-dateutil==2.7.3
python-ldap==3.1.0
pytz==2018.4
six==1.11.0
sqlparse==0.2.4
wrapt==1.10.11

Loading…
Cancel
Save