Skip to content

Commit

Permalink
Merge pull request #206 from vtorhonen/chore/dockerfile-improvements
Browse files Browse the repository at this point in the history
Dockerfile improvements
  • Loading branch information
lepinkainen committed Jun 1, 2017
2 parents b4fbfec + 1fa72b7 commit 9ee90b9
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions Dockerfile
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"]

0 comments on commit 9ee90b9

Please sign in to comment.