-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #206 from vtorhonen/chore/dockerfile-improvements
Dockerfile improvements
- Loading branch information
Showing
1 changed file
with
21 additions
and
19 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,26 +1,28 @@ | ||
FROM alpine | ||
MAINTAINER Riku Lindblad "riku.lindblad@gmail.com" | ||
|
||
RUN apk add --update \ | ||
python \ | ||
python-dev \ | ||
build-base \ | ||
git \ | ||
py-pip \ | ||
openssl-dev \ | ||
libxml2-dev \ | ||
libxslt-dev \ | ||
libssl1.0 \ | ||
libffi-dev | ||
|
||
RUN pip install --upgrade pip | ||
|
||
RUN git clone https://github.com/lepinkainen/pyfibot.git | ||
WORKDIR pyfibot | ||
RUN pip install --upgrade -r requirements.txt | ||
|
||
RUN mkdir /config | ||
RUN set -x \ | ||
&& apk add --no-cache --virtual .runtime-deps \ | ||
python \ | ||
libssl1.0 \ | ||
ca-certificates \ | ||
&& apk add --no-cache --virtual .build-deps \ | ||
python-dev \ | ||
build-base \ | ||
git \ | ||
py-pip \ | ||
openssl-dev \ | ||
libxml2-dev \ | ||
libxslt-dev \ | ||
libffi-dev \ | ||
&& git clone https://github.com/lepinkainen/pyfibot.git /pyfibot \ | ||
&& rm -rf /pyfibot/.git \ | ||
&& cd /pyfibot \ | ||
&& pip install --upgrade -r requirements.txt \ | ||
&& apk del .build-deps \ | ||
&& mkdir /config | ||
|
||
WORKDIR /pyfibot | ||
VOLUME /config | ||
|
||
ENTRYPOINT ["pyfibot/pyfibot.py", "/config/config.yml"] |