1
0
mirror of https://github.com/gilbN/theme.park.git synced 2024-08-18 07:59:37 +02:00
theme.park/docker/Dockerfile
2022-03-20 17:16:25 +01:00

37 lines
1.0 KiB
Docker

FROM ghcr.io/linuxserver/baseimage-alpine-nginx:3.14
# set version label
ARG BUILD_DATE
ARG TP_RELEASE
LABEL build_version="Version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="gilbn"
RUN \
echo " ## Installing packages ## " && \
apk add --no-cache --virtual=build-dependencies \
curl && \
echo "**** install theme.park ****" && \
mkdir -p /app/themepark && \
if [ -z ${TP_RELEASE+x} ]; then \
TP_RELEASE=$(curl -sX GET "https://api.github.com/repos/gilbn/theme.park/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
curl -o \
/tmp/themepark.tar.gz -L \
"https://github.com/GilbN/theme.park/archive/refs/tags/${TP_RELEASE}.tar.gz" && \
tar xf \
/tmp/themepark.tar.gz -C \
/app/themepark/ --strip-components=1 && \
cd /app/themepark && \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
rm -rf \
/root/.cache \
/tmp/* \
/app/themepark/docker-mods \
/app/themepark/resources/organizr
# copy local files
COPY root/ /