Skip to content

Commit

Permalink
Switch to using alpine linux for docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
frankh committed Feb 13, 2017
1 parent 5c43b2a commit 2f79bc5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
21 changes: 11 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,36 +1,37 @@
FROM python:2.7
FROM node:4-alpine

ENV PYTHONUNBUFFERED 1

RUN mkdir /code

WORKDIR /code

RUN apt-get update && apt-get install -y \
RUN apk add --no-cache \
python-dev \
libsasl2-dev \
libldap2-dev \
libpq-dev \
npm
py-pip \
postgresql-dev \
gcc \
musl-dev \
libffi-dev \
openldap-dev \
bash

RUN npm install -g \
--registry http://registry.npmjs.org/ \
coffee-script \
[email protected]

RUN ln -s `which nodejs` /usr/bin/node

RUN pip install --upgrade pip

COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

COPY requirements-dev.txt ./
RUN pip install --no-cache-dir -r requirements-dev.txt

COPY requirements-plugins.txt ./
RUN pip install --no-cache-dir -r requirements-plugins.txt

RUN pip install ipdb

ADD . /code/

ENTRYPOINT ["./docker-entrypoint.sh"]
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-r requirements.txt
coverage==4.2
django_coverage_plugin==1.3.1
mock==1.0.1
ipdb
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ django-filter==0.13
django-jsonify==0.3.0
django-mptt==0.6.0
django-polymorphic==0.7.2
django-redis==1.4.5
django-smtp-ssl==1.0
djangorestframework==2.4.8
gunicorn==18.0
Expand Down

0 comments on commit 2f79bc5

Please sign in to comment.