Initial commit

This commit is contained in:
Tomas Pizarro
2017-11-13 16:29:00 +00:00
commit f9cd46c375
22 changed files with 846 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
FROM bitnami/python:2 as builder
COPY . /app
WORKDIR /app
RUN virtualenv . && \
. bin/activate && \
pip install django && \
python manage.py migrate
FROM bitnami/python:2-prod
COPY --from=builder /app /app
WORKDIR /app
EXPOSE 8000
CMD bash -c "source bin/activate && python manage.py runserver 0:8000"