This repository has been archived by the owner on Mar 27, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
hubertc
committed
Jul 10, 2018
1 parent
45012dc
commit 5bb9765
Showing
2 changed files
with
52 additions
and
16 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,37 +1,36 @@ | ||
FROM ubuntu:14.04 | ||
FROM gliderlabs/alpine:3.3 | ||
|
||
ENV PRODUCT iridium | ||
|
||
RUN apt-get -y update | ||
|
||
RUN apt-get -y install \ | ||
git \ | ||
wget \ | ||
python-dev \ | ||
python-virtualenv \ | ||
libffi-dev \ | ||
libssl-dev | ||
RUN apk add --update \ | ||
python \ | ||
python-dev \ | ||
git \ | ||
wget \ | ||
libffi-dev \ | ||
gcc | ||
|
||
WORKDIR /root | ||
|
||
ENV PRODUCT iridium | ||
|
||
RUN wget https://bootstrap.pypa.io/get-pip.py \ | ||
&& python get-pip.py | ||
&& python get-pip.py && pip install virtualenv | ||
|
||
WORKDIR interstella | ||
|
||
RUN virtualenv ${PRODUCT} | ||
|
||
WORKDIR ${PRODUCT} | ||
|
||
RUN bin/pip install --upgrade pip && \ | ||
bin/pip install requests[security] | ||
#RUN bin/pip install --upgrade pip && \ | ||
# bin/pip install requests[security] | ||
|
||
COPY ./requirements.txt . | ||
|
||
RUN bin/pip install -r requirements.txt | ||
|
||
COPY ./$PRODUCT.py . | ||
COPY ./iridium.py . | ||
|
||
EXPOSE 5000 | ||
|
||
ENTRYPOINT ["bin/python", "iridium.py"] | ||
|
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
FROM ubuntu:14.04 | ||
|
||
ENV PRODUCT iridium | ||
|
||
RUN apt-get -y update | ||
|
||
RUN apt-get -y install \ | ||
git \ | ||
wget \ | ||
python-dev \ | ||
python-virtualenv \ | ||
libffi-dev \ | ||
libssl-dev | ||
|
||
WORKDIR /root | ||
|
||
RUN wget https://bootstrap.pypa.io/get-pip.py \ | ||
&& python get-pip.py | ||
|
||
WORKDIR interstella | ||
|
||
RUN virtualenv ${PRODUCT} | ||
|
||
WORKDIR ${PRODUCT} | ||
|
||
RUN bin/pip install --upgrade pip && \ | ||
bin/pip install requests[security] | ||
|
||
COPY ./requirements.txt . | ||
|
||
RUN bin/pip install -r requirements.txt | ||
|
||
COPY ./$PRODUCT.py . | ||
|
||
EXPOSE 5000 | ||
|
||
ENTRYPOINT ["bin/python", "iridium.py"] |