mirror of
https://github.com/bitnami/containers.git
synced 2026-10-17 08:37:30 +02:00
Initial commit
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user