Tweaks to Dockerfile
This commit is contained in:
parent
1830d04400
commit
980837c166
@ -10,18 +10,22 @@ nano
|
||||
|
||||
RUN mkdir /data
|
||||
RUN mkdir /data/www
|
||||
RUN mkdir /data/www/pillar_dev
|
||||
RUN mkdir /data/www/pillar
|
||||
RUN mkdir /data/dev
|
||||
RUN mkdir /data/dev/pillar
|
||||
|
||||
RUN git clone https://github.com/armadillica/pillar.git /data/www/pillar
|
||||
|
||||
RUN pip install virtualenv
|
||||
RUN virtualenv /data/venv
|
||||
#RUN . /data/venv/bin/activate
|
||||
#RUN pip install -r requirements.txt
|
||||
RUN . /data/venv/bin/activate && pip install -r /data/www/pillar/requirements.txt
|
||||
|
||||
VOLUME /data/www/pillar_dev
|
||||
VOLUME /data/dev/pillar
|
||||
|
||||
ENV MONGO_HOST='mongo_pillar'
|
||||
ENV MONGO_HOST mongo_pillar
|
||||
|
||||
EXPOSE 5000
|
||||
|
||||
#ENTRYPOINT . /data/venv/bin/activate; \
|
||||
#cd /data/www/pillar_dev; \
|
||||
ADD runserver.sh /runserver.sh
|
||||
|
||||
ENTRYPOINT ["bash", "/runserver.sh"]
|
||||
|
3
docker/runserver.sh
Normal file
3
docker/runserver.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
. /data/venv/bin/activate && python /data/dev/pillar/pillar/manage.py runserver
|
Loading…
x
Reference in New Issue
Block a user