docker-ombi/Dockerfile
2017-01-14 09:41:26 +00:00

52 lines
1.1 KiB
Docker
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM lsiobase/xenial
MAINTAINER sparklyballs
# environment settings
ARG DEBIAN_FRONTEND="noninteractive"
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
# install packages
RUN \
apt-get update && \
apt-get install -y \
--no-install-recommends \
--no-install-suggests \
bzip2 \
libcurl4-openssl-dev \
libmono-cil-dev \
mono-mcs \
python \
unzip \
wget && \
# install ombi
mkdir -p \
/opt && \
ombi_tag=$(curl -sX GET "https://api.github.com/repos/tidusjar/Ombi/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
curl -o \
/tmp/ombi-src.zip -L \
"https://github.com/tidusjar/Ombi/releases/download/${ombi_tag}/PlexRequests.zip" && \
unzip -q /tmp/ombi-src.zip -d /tmp && \
mv /tmp/Release /opt/ombi && \
# test for plexrequests.exe and exit out if not found
if [ ! -e "/opt/ombi/PlexRequests.exe" ]; then exit 1; fi && \
# clean up
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
# add local files
COPY /root /
# ports and volumes
EXPOSE 3579
VOLUME /config