forked from arachnys/cabot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to using alpine linux for docker container
- Loading branch information
Showing
3 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters