mirror of
https://github.com/status-im/cabot.git
synced 2025-02-23 09:58: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
|
ENV PYTHONUNBUFFERED 1
|
||||||
|
|
||||||
@ -6,31 +6,32 @@ RUN mkdir /code
|
|||||||
|
|
||||||
WORKDIR /code
|
WORKDIR /code
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apk add --no-cache \
|
||||||
python-dev \
|
python-dev \
|
||||||
libsasl2-dev \
|
py-pip \
|
||||||
libldap2-dev \
|
postgresql-dev \
|
||||||
libpq-dev \
|
gcc \
|
||||||
npm
|
musl-dev \
|
||||||
|
libffi-dev \
|
||||||
|
openldap-dev \
|
||||||
|
bash
|
||||||
|
|
||||||
RUN npm install -g \
|
RUN npm install -g \
|
||||||
--registry http://registry.npmjs.org/ \
|
--registry http://registry.npmjs.org/ \
|
||||||
coffee-script \
|
coffee-script \
|
||||||
less@1.3
|
less@1.3
|
||||||
|
|
||||||
RUN ln -s `which nodejs` /usr/bin/node
|
|
||||||
|
|
||||||
RUN pip install --upgrade pip
|
RUN pip install --upgrade pip
|
||||||
|
|
||||||
COPY requirements.txt ./
|
COPY requirements.txt ./
|
||||||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
COPY requirements-dev.txt ./
|
COPY requirements-dev.txt ./
|
||||||
RUN pip install --no-cache-dir -r requirements-dev.txt
|
RUN pip install --no-cache-dir -r requirements-dev.txt
|
||||||
|
|
||||||
COPY requirements-plugins.txt ./
|
COPY requirements-plugins.txt ./
|
||||||
RUN pip install --no-cache-dir -r requirements-plugins.txt
|
RUN pip install --no-cache-dir -r requirements-plugins.txt
|
||||||
|
|
||||||
RUN pip install ipdb
|
|
||||||
|
|
||||||
ADD . /code/
|
ADD . /code/
|
||||||
|
|
||||||
ENTRYPOINT ["./docker-entrypoint.sh"]
|
ENTRYPOINT ["./docker-entrypoint.sh"]
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
-r requirements.txt
|
|
||||||
coverage==4.2
|
coverage==4.2
|
||||||
django_coverage_plugin==1.3.1
|
django_coverage_plugin==1.3.1
|
||||||
mock==1.0.1
|
mock==1.0.1
|
||||||
|
ipdb
|
||||||
|
@ -13,7 +13,6 @@ django-filter==0.13
|
|||||||
django-jsonify==0.3.0
|
django-jsonify==0.3.0
|
||||||
django-mptt==0.6.0
|
django-mptt==0.6.0
|
||||||
django-polymorphic==0.7.2
|
django-polymorphic==0.7.2
|
||||||
django-redis==1.4.5
|
|
||||||
django-smtp-ssl==1.0
|
django-smtp-ssl==1.0
|
||||||
djangorestframework==2.4.8
|
djangorestframework==2.4.8
|
||||||
gunicorn==18.0
|
gunicorn==18.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user