mirror of
https://github.com/status-im/cabot.git
synced 2025-02-22 17:38:06 +00:00
Switch to using alpine linux for docker container
This commit is contained in:
parent
5c43b2a744
commit
2f79bc5a23
21
Dockerfile
21
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"]
|
||||
|
@ -1,4 +1,4 @@
|
||||
-r requirements.txt
|
||||
coverage==4.2
|
||||
django_coverage_plugin==1.3.1
|
||||
mock==1.0.1
|
||||
ipdb
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user