Skip to content
This repository was archived by the owner on Jan 18, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ ARG ISSO_VER=0.12.2

ENV GID=1000 UID=1000

COPY run.sh /usr/local/bin/run.sh

RUN apk -U upgrade \
&& apk add -t build-dependencies \
python3-dev \
Expand All @@ -18,16 +20,13 @@ RUN apk -U upgrade \
tini \
&& pip3 install --no-cache "isso==${ISSO_VER}" \
&& apk del build-dependencies \
&& chmod +x /usr/local/bin/run.sh \
&& rm -rf /tmp/* /var/cache/apk/*

COPY run.sh /usr/local/bin/run.sh

RUN chmod +x /usr/local/bin/run.sh

EXPOSE 8080

VOLUME /db /config

LABEL maintainer="Wonderfall <wonderfall@targaryen.house>"

CMD ["run.sh"]
CMD ["run.sh"]
8 changes: 7 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#!/bin/sh
chown -R $UID:$GID /db /config
exec su-exec $UID:$GID /sbin/tini -- isso -c /config/isso.conf run
CONFIGFILE=/config/isso.conf
if test -f "$CONFIGFILE"; then
exec su-exec $UID:$GID /sbin/tini -- isso -c $CONFIGFILE run
else
echo "The configuration file $CONFIGFILE was not found."
exit
fi