mirror of
https://github.com/linuxserver/docker-ombi.git
synced 2026-02-20 00:58:02 +08:00
52 lines
1.1 KiB
Docker
52 lines
1.1 KiB
Docker
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
|