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

44 lines
1.2 KiB

2 years ago
# syntax=docker/dockerfile:1
7 months ago
FROM ghcr.io/linuxserver/baseimage-alpine:3.20
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 \
2 years ago
echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \
unzip && \
echo "**** install runtime packages ****" && \
apk add --no-cache \
openjdk17-jre && \
2 years ago
echo "**** install ubooquity ****" && \
if [ -z ${UBOOQUITY_VERSION+x} ]; then \
UBOOQUITY_VERSION=$(curl -IsL -w %{url_effective} -o /dev/null https://vaemendis.net/ubooquity/service/download.php \
2 years ago
| sed 's|.*Ubooquity-\([0-9\.]*\).zip|\1|'); \
fi && \
mkdir -p \
/app/ubooquity && \
curl -o \
/tmp/ubooquity.zip -L \
"https://vaemendis.net/ubooquity/downloads/Ubooquity-${UBOOQUITY_VERSION}.zip" && \
2 years ago
unzip /tmp/ubooquity.zip -d /app/ubooquity && \
7 months ago
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
2 years ago
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
rm -rf \
/tmp/*
8 years ago
# copy local files
8 years ago
COPY root/ /
# ports and volumes
EXPOSE 2202 2203
2 years ago
VOLUME /config