Created
April 24, 2019 08:05
-
-
Save Cazzar/986bf758bba1fdbbb22a1017a77bf1ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM mono:5.20 | |
#MAINTAINER Cayde Dixon <[email protected]> | |
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