summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Dobrowolski <admin@tastycode.pl>2019-05-12 15:58:19 +0200
committerPiotr Dobrowolski <admin@tastycode.pl>2019-05-12 15:58:19 +0200
commitd39cfd9b428a4ab53a714ef17630baa85d7ff7f8 (patch)
treee8db703ed465425591fbc94993767d9213be9d42
parent43c1c94844f0775a297a9db0e3667967a928e55c (diff)
downloadspejstore-d39cfd9b428a4ab53a714ef17630baa85d7ff7f8.tar.gz
spejstore-d39cfd9b428a4ab53a714ef17630baa85d7ff7f8.tar.bz2
spejstore-d39cfd9b428a4ab53a714ef17630baa85d7ff7f8.tar.xz
spejstore-d39cfd9b428a4ab53a714ef17630baa85d7ff7f8.zip
Dockerfile: add missing CMD
-rw-r--r--Dockerfile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index 87fb994..190c716 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,9 +2,10 @@ FROM python:3.5
ENV PYTHONUNBUFFERED 1
RUN mkdir /code
WORKDIR /code
-RUN apt-get -y update
-RUN apt-get -y install libsasl2-dev libldap2-dev libssl-dev
ADD requirements.txt /code/
RUN pip install --no-cache-dir -r requirements.txt
RUN wget https://github.com/vishnubob/wait-for-it/raw/8ed92e8cab83cfed76ff012ed4a36cef74b28096/wait-for-it.sh -O /usr/local/bin/wait-for-it && chmod +x /usr/local/bin/wait-for-it
ADD . /code/
+RUN python manage.py collectstatic
+
+CMD bash -c "python manage.py migrate && python manage.py runserver 0.0.0.0:8000"