mirror of
https://github.com/linuxserver/docker-ombi.git
synced 2026-02-20 00:58:02 +08:00
44 lines
1.2 KiB
Docker
44 lines
1.2 KiB
Docker
FROM lsiobase/ubuntu:bionic
|
||
|
||
# set version label
|
||
ARG BUILD_DATE
|
||
ARG VERSION
|
||
ARG OMBI_RELEASE
|
||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||
LABEL maintainer="sparklyballs"
|
||
|
||
# environment settings
|
||
ENV HOME="/config"
|
||
|
||
RUN \
|
||
apt-get update && \
|
||
apt-get install -y \
|
||
jq \
|
||
libicu60 \
|
||
libssl1.0 && \
|
||
echo "**** install ombi ****" && \
|
||
mkdir -p \
|
||
/opt/ombi && \
|
||
if [ -z ${OMBI_RELEASE+x} ]; then \
|
||
OMBI_RELEASE=$(curl -sL GET https://ci.appveyor.com/api/projects/tidusjar/requestplex/history?recordsNumber=100 | jq -r '. | first(.builds[] | select(.status == "success") | select(.branch =="develop") | select(.pullRequestId == null)) | .version'); \
|
||
fi && \
|
||
OMBI_JOBID=$(curl -s "https://ci.appveyor.com/api/projects/tidusjar/requestplex/build/${OMBI_RELEASE}" | jq -jr '. | .build.jobs[0].jobId') \
|
||
OMBI_DURL="https://ci.appveyor.com/api/buildjobs/${OMBI_JOBID}/artifacts/linux.tar.gz"; \
|
||
curl -o \
|
||
/tmp/ombi-src.tar.gz -L \
|
||
"${OMBI_DURL}" && \
|
||
tar xzf /tmp/ombi-src.tar.gz -C \
|
||
/opt/ombi/ && \
|
||
chmod +x /opt/ombi/Ombi && \
|
||
echo "**** clean up ****" && \
|
||
rm -rf \
|
||
/tmp/* \
|
||
/var/lib/apt/lists/* \
|
||
/var/tmp/*
|
||
|
||
# add local files
|
||
COPY /root /
|
||
|
||
# ports and volumes
|
||
EXPOSE 3579
|