-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (33 loc) · 941 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM alpine:3.5
ARG ISSO_VER=0.10.5
ENV GID=1000 UID=1000
RUN echo "@community https://nl.alpinelinux.org/alpine/v3.4/community" >> /etc/apk/repositories \
&& BUILD_DEPS=" \
python-dev \
libffi-dev \
py2-pip \
build-base" \
&& apk -U add \
${BUILD_DEPS} \
python \
py-setuptools \
sqlite \
libressl \
ca-certificates \
su-exec \
tini@community \
&& pip install --no-cache gunicorn \
&& pip install --no-cache cffi \
&& pip install --no-cache misaka==1.0.2 \
&& wget -q https://github.com/posativ/isso/releases/download/$ISSO_VER/isso-$ISSO_VER.tar.gz -P /tmp \
&& pip install /tmp/isso-$ISSO_VER.tar.gz \
&& apk del ${BUILD_DEPS} \
&& 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
CMD ["run.sh"]
COPY isso.conf.tpl /opt/config/isso.conf.tpl
COPY run.sh /run.sh
ENTRYPOINT ["/sbin/tini", "sh", "/run.sh"]