docker-ombi/Dockerfile
2021-01-19 03:22:44 +01:00

44 lines
1004 B
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 ghcr.io/linuxserver/baseimage-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="aptalca"
# 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 -sX GET "https://api.github.com/repos/Ombi-app/Ombi/releases" \
| jq -r 'first(.[] | select(.prerelease == true)) | .tag_name'); \
fi && \
OMBI_DURL="https://github.com/Ombi-app/Ombi/releases/download/${OMBI_RELEASE}/linux-x64.tar.gz" && \
curl -o \
/tmp/ombi.tar.gz -L \
"${OMBI_DURL}" && \
tar xzf /tmp/ombi.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