From 2f79bc5a23edb9abddf05c87f21571b2a023777d Mon Sep 17 00:00:00 2001 From: Frank Hamand Date: Thu, 9 Feb 2017 18:32:00 +0000 Subject: [PATCH] Switch to using alpine linux for docker container --- Dockerfile | 21 +++++++++++---------- requirements-dev.txt | 2 +- requirements.txt | 1 - 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index d3a16a2..becbb7b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:2.7 +FROM node:4-alpine ENV PYTHONUNBUFFERED 1 @@ -6,31 +6,32 @@ 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 \ less@1.3 -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"] diff --git a/requirements-dev.txt b/requirements-dev.txt index d6ccab6..576621c 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,4 +1,4 @@ --r requirements.txt coverage==4.2 django_coverage_plugin==1.3.1 mock==1.0.1 +ipdb diff --git a/requirements.txt b/requirements.txt index 103635d..f21ecdb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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