mirror of
https://github.com/bitnami/containers.git
synced 2026-02-16 10:27:16 +08:00
Initial commit
This commit is contained in:
13
bitnami/python/example/Dockerfile
Normal file
13
bitnami/python/example/Dockerfile
Normal 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"
|
||||
Reference in New Issue
Block a user