Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Dockerfile-dev & docker-compose.yml
- Loading branch information
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM quay.io/deis/base:0.3.0 | ||
|
||
ENV PYTHONDONTWRITEBYTECODE=1 | ||
ENV PIP_DISABLE_PIP_VERSION_CHECK=1 | ||
|
||
EXPOSE 8000 | ||
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"] | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends python2.7 libpython2.7 \ | ||
gettext build-essential python-dev python-pip python-setuptools \ | ||
postgresql-client libpq-dev \ | ||
python-cffi-backend libffi-dev | ||
|
||
WORKDIR /app | ||
|
||
COPY ./requirements.txt /app/ | ||
COPY ./requirements-test.txt /app/ | ||
RUN pip install --no-cache-dir -r requirements-test.txt | ||
|
||
COPY ./requirements-dev.txt /app/ | ||
RUN pip install --no-cache-dir -r requirements-dev.txt |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: '2' | ||
services: | ||
db: | ||
image: postgres | ||
web: | ||
image: codesy-dev | ||
command: ./manage.py runserver 0.0.0.0:8000 | ||
volumes: | ||
- .:/app | ||
ports: | ||
- "8000:8000" | ||
depends_on: | ||
- db |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
-r requirements-test.txt | ||
|
||
ipdb==0.9.0 | ||
ipython==4.1.2 | ||
Sphinx==1.3.6 | ||
|