From bd60b7a60b9a2ad7e82c1c0d87c847d61e42f6b7 Mon Sep 17 00:00:00 2001 From: Tony Hendrick Date: Thu, 14 May 2020 11:49:39 -0700 Subject: [PATCH] Dockerfile was missing migrations --- docker/.env | 2 +- docker/Dockerfile | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/docker/.env b/docker/.env index 75596a2..b60e7da 100644 --- a/docker/.env +++ b/docker/.env @@ -1,4 +1,4 @@ -LOCAL_BOOK_DIR=~/Books #This directory will be craeted otherwise link to the directory containing your .epub files +LOCAL_BOOK_DIR=/home/marvin/git/pyShelf/Books PORT=8088 POSTGRES_VER=12.2 POSTGRES_USER=pyshelf diff --git a/docker/Dockerfile b/docker/Dockerfile index 4f11133..81b374b 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -12,9 +12,8 @@ RUN python3 -m pip install wheel RUN git clone https://github.com/hat/pyShelf.git /usr/src/app/ RUN python3 -m pip install -r /usr/src/app/requirements.txt EXPOSE 8000 -#CMD ["bin/bash"] WORKDIR /usr/src/app/src/ -#RUN python3 manage.py migrate -#RUN python3 manage.py migrate interface +RUN python3 manage.py migrate +RUN python3 manage.py migrate interface CMD ["python3", "manage.py", "runserver", "0.0.0.0:8000"]