Last active
August 29, 2015 14:08
-
-
Save milafrerichs/7e456c430a704a37e5f0 to your computer and use it in GitHub Desktop.
Python directory structure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENV PYTHONUNBUFFERED 1 | |
RUN mkdir /workdir | |
WORKDIR /workdir | |
ADD requirements.txt /workdir/ | |
RUN pip install -r requirements.txt | |
ADD . /workdir/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web: | |
build: . | |
command: python manage.py runserver 0.0.0.0:8000 | |
volumes: | |
- .:/workdir/app | |
ports: | |
- "8000:8000" | |
web: | |
build: . | |
command: python app/manage.py runserver 0.0.0.0:8000 | |
volumes: | |
- .:/workdir | |
ports: | |
- "8000:8000" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
web: | |
build: . | |
command: python manage.py runserver 0.0.0.0:8000 | |
volumes: | |
- .:/workdir | |
ports: | |
- "8000:8000" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- workdir | |
- requirements.txt | |
- app | |
- manage.py | |
- all other stuff | |
- README |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment