38 lines
679 B
Docker
Raw Normal View History

2017-05-27 01:46:23 +02:00
FROM alpine:3.6
2016-04-11 15:59:32 +02:00
ARG ISSO_VER=0.10.6
2016-04-11 16:16:56 +02:00
ENV GID=1000 UID=1000
2016-04-11 15:59:32 +02:00
2017-05-27 01:46:23 +02:00
RUN apk -U upgrade \
&& apk add -t build-dependencies \
2016-04-11 15:59:32 +02:00
python-dev \
libffi-dev \
2017-01-16 22:13:29 +01:00
py2-pip \
2017-05-27 01:46:23 +02:00
build-base \
&& apk add \
2016-06-03 18:59:45 +02:00
python \
py-setuptools \
2016-04-11 15:59:32 +02:00
sqlite \
2017-01-16 22:13:29 +01:00
libressl \
2016-04-11 15:59:32 +02:00
ca-certificates \
2016-05-07 01:04:42 +02:00
su-exec \
2017-05-27 01:46:23 +02:00
tini \
2016-04-11 15:59:32 +02:00
&& pip install --no-cache cffi \
&& pip install --no-cache misaka==1.0.2 \
2017-02-02 18:14:23 +01:00
&& pip install --no-cache "isso==${ISSO_VER}" \
2017-05-27 01:46:23 +02:00
&& apk del build-dependencies \
&& rm -rf /tmp/* /var/cache/apk/*
2016-04-11 15:59:32 +02:00
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
2017-01-19 02:31:59 +01:00
LABEL maintainer="Wonderfall <wonderfall@targaryen.house>"
2016-09-16 17:08:06 +02:00
CMD ["run.sh"]