You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ubooquity/Dockerfile

41 lines
1.1 KiB

FROM lsiobase/alpine:3.11
8 years ago
# set version label
ARG BUILD_DATE
ARG VERSION
ARG UBOOQUITY_VERSION
8 years ago
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="sparklyballs"
8 years ago
RUN \
echo "**** install build packages ****" && \
8 years ago
apk add --no-cache --virtual=build-dependencies \
curl \
unzip && \
echo "**** install runtime packages ****" && \
8 years ago
apk add --no-cache \
openjdk8-jre-base && \
echo "**** install ubooquity ****" && \
if [ -z ${UBOOQUITY_VERSION+x} ]; then \
UBOOQUITY_VERSION=$(curl -IsL -w %{url_effective} -o /dev/null http://vaemendis.net/ubooquity/service/download.php \
| sed 's|.*Ubooquity-\([0-9\.]*\).zip|\1|'); \
fi && \
8 years ago
mkdir -p \
/app/ubooquity && \
8 years ago
curl -o \
/tmp/ubooquity.zip -L \
"http://vaemendis.net/ubooquity/downloads/Ubooquity-${UBOOQUITY_VERSION}.zip" && \
unzip /tmp/ubooquity.zip -d /app/ubooquity && \
echo "**** cleanup ****" && \
8 years ago
apk del --purge \
build-dependencies && \
rm -rf \
/tmp/*
# copy local files
8 years ago
COPY root/ /
# ports and volumes
EXPOSE 2202 2203
8 years ago
VOLUME /books /comics /config /files