Skip to content

Instantly share code, notes, and snippets.

@milafrerichs
Last active August 29, 2015 14:08
Show Gist options
  • Save milafrerichs/7e456c430a704a37e5f0 to your computer and use it in GitHub Desktop.
Save milafrerichs/7e456c430a704a37e5f0 to your computer and use it in GitHub Desktop.
Python directory structure
ENV PYTHONUNBUFFERED 1
RUN mkdir /workdir
WORKDIR /workdir
ADD requirements.txt /workdir/
RUN pip install -r requirements.txt
ADD . /workdir/
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"
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
volumes:
- .:/workdir
ports:
- "8000:8000"
- 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