Dockerfile was missing migrations

This commit is contained in:
Tony Hendrick
2020-05-14 11:49:39 -07:00
parent f17ecd6e21
commit bd60b7a60b
2 changed files with 3 additions and 4 deletions

2
docker/.env vendored
View File

@@ -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

5
docker/Dockerfile vendored
View File

@@ -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"]