Switch to using alpine linux for docker container

This commit is contained in:
Frank Hamand 2017-02-09 18:32:00 +00:00
parent 5c43b2a744
commit 2f79bc5a23
3 changed files with 12 additions and 12 deletions

View File

@ -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"]

View File

@ -1,4 +1,4 @@
-r requirements.txt
coverage==4.2
django_coverage_plugin==1.3.1
mock==1.0.1
ipdb

View File

@ -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