Skip to content

Commit

Permalink
Add Dockerfile-dev & docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jgmize committed May 24, 2017
1 parent 1f26ccb commit 9faca4b
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Dockerfile-dev
@@ -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
13 changes: 13 additions & 0 deletions docker-compose.yml
@@ -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
2 changes: 2 additions & 0 deletions requirements-dev.txt
@@ -1,3 +1,5 @@
-r requirements-test.txt

ipdb==0.9.0
ipython==4.1.2
Sphinx==1.3.6
Expand Down

0 comments on commit 9faca4b

Please sign in to comment.