Skip to content

Instantly share code, notes, and snippets.

@Cazzar
Created April 24, 2019 08:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Cazzar/986bf758bba1fdbbb22a1017a77bf1ca to your computer and use it in GitHub Desktop.
Save Cazzar/986bf758bba1fdbbb22a1017a77bf1ca to your computer and use it in GitHub Desktop.
FROM mono:5.20
#MAINTAINER Cayde Dixon <me@cazzar.net>
ENV PUID=1000 \
PGID=100
RUN apt-get update && apt-get install -y gnupg2
RUN curl https://bintray.com/user/downloadSubjectPublicKey?username=bintray | apt-key add -
RUN echo "deb http://dl.bintray.com/cazzar/shoko-deps jesse main" | tee -a /etc/apt/sources.list
RUN echo "deb http://ftp.debian.org/debian stretch-backports main" | tee -a /etc/apt/sources.list
RUN apt update && apt install -y --force-yes libmediainfo0v5 librhash0 sqlite.interop jq unzip && apt install -t stretch-backports gosu
ADD https://raw.githubusercontent.com/ShokoAnime/ShokoServer/master/dockerentry.sh /dockerentry.sh
RUN mkdir -p /usr/src/app/build
COPY zip/* /usr/src/app/build/
WORKDIR /usr/src/app/build/webui
#RUN curl -L $(curl https://api.github.com/repos/ShokoAnime/ShokoServer-WebUI/releases | jq -r '. | map(select(.prerelease==false)) | .[0].assets[0].browser_download_url') -o latest.zip
RUN curl -L $(curl https://api.github.com/repos/ShokoAnime/ShokoServer-WebUI/releases | jq -r '.[0].assets[0].browser_download_url') -o latest.zip
RUN unzip -o latest.zip
RUN rm latest.zip
WORKDIR /usr/src/app/build
VOLUME /home/shoko/.shoko/
VOLUME /usr/src/app/build/webui
HEALTHCHECK --start-period=5m CMD curl -H "Content-Type: application/json" -H 'Accept: application/json' 'http://localhost:8111/v1/Server' || exit 1
EXPOSE 8111
ENTRYPOINT /bin/bash /dockerentry.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment