dockerfiles/isso/Dockerfile

36 lines
865 B
Docker
Raw Normal View History

2016-06-03 18:59:45 +02:00
FROM alpine:edge
2016-04-11 15:59:32 +02:00
MAINTAINER Wonderfall <wonderfall@mondedie.fr>
2016-04-12 22:36:26 +02:00
ARG ISSO_VER=0.10.4
2016-04-11 16:16:56 +02:00
ENV GID=1000 UID=1000
2016-04-11 15:59:32 +02:00
2016-05-07 01:04:42 +02:00
RUN echo "@commuedge http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
2016-06-03 18:59:45 +02:00
&& BUILD_DEPS=" \
2016-04-11 15:59:32 +02:00
python-dev \
libffi-dev \
py-pip \
2016-06-03 18:59:45 +02:00
build-base" \
&& apk -U add \
${BUILD_DEPS} \
python \
py-setuptools \
2016-04-11 15:59:32 +02:00
sqlite \
2016-06-03 20:56:41 +02:00
openssl \
2016-04-11 15:59:32 +02:00
ca-certificates \
2016-05-07 01:04:42 +02:00
su-exec \
2016-04-11 15:59:32 +02:00
tini@commuedge \
&& pip install --no-cache cffi \
&& pip install --no-cache misaka==1.0.2 \
&& wget https://github.com/posativ/isso/releases/download/$ISSO_VER/isso-$ISSO_VER.tar.gz -P /tmp \
&& pip install /tmp/isso-$ISSO_VER.tar.gz \
2016-06-03 18:59:45 +02:00
&& apk del ${BUILD_DEPS} \
2016-04-11 15:59:32 +02:00
&& rm -rf /var/cache/apk/* /tmp/*
COPY run.sh /usr/local/bin/run.sh
RUN chmod +x /usr/local/bin/run.sh
EXPOSE 8080
VOLUME /db /config
2016-05-09 18:46:01 +02:00
CMD ["/sbin/tini","--","run.sh"]