2016-07-11 21:57:56 +02:00
|
|
|
FROM alpine:3.4
|
2016-09-20 23:42:31 +02:00
|
|
|
MAINTAINER Wonderfall <wonderfall@schrodinger.io>
|
2016-04-11 15:59:32 +02:00
|
|
|
|
2016-09-20 23:42:31 +02:00
|
|
|
ARG ISSO_VER=0.10.5
|
2016-04-11 16:16:56 +02:00
|
|
|
|
|
|
|
ENV GID=1000 UID=1000
|
2016-04-11 15:59:32 +02:00
|
|
|
|
2016-09-20 23:42:31 +02:00
|
|
|
RUN echo "@community https://nl.alpinelinux.org/alpine/v3.4/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-09-20 23:42:31 +02:00
|
|
|
tini@community \
|
2016-04-11 15:59:32 +02:00
|
|
|
&& 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
|
2016-09-16 17:08:06 +02:00
|
|
|
|
2016-04-11 15:59:32 +02:00
|
|
|
RUN chmod +x /usr/local/bin/run.sh
|
|
|
|
|
|
|
|
EXPOSE 8080
|
2016-09-16 17:08:06 +02:00
|
|
|
|
2016-04-11 15:59:32 +02:00
|
|
|
VOLUME /db /config
|
2016-09-16 17:08:06 +02:00
|
|
|
|
|
|
|
CMD ["run.sh"]
|