mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-04-20 20:39:18 +00:00
39 lines
853 B
Docker
39 lines
853 B
Docker
FROM alpine:3.4
|
|
MAINTAINER Wonderfall <wonderfall@schrodinger.io>
|
|
|
|
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 \
|
|
py-pip \
|
|
build-base" \
|
|
&& apk -U add \
|
|
${BUILD_DEPS} \
|
|
python \
|
|
py-setuptools \
|
|
sqlite \
|
|
openssl \
|
|
ca-certificates \
|
|
su-exec \
|
|
tini@community \
|
|
&& 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 \
|
|
&& 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 /config
|
|
|
|
CMD ["run.sh"]
|