mirror of
https://github.com/linuxserver/docker-heimdall.git
synced 2025-10-27 03:03:38 +09:00
rebase to alpine 3.8
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -1,4 +1,4 @@
|
|||||||
FROM lsiobase/alpine.nginx:3.7
|
FROM lsiobase/alpine.nginx:3.8
|
||||||
|
|
||||||
# set version label
|
# set version label
|
||||||
ARG BUILD_DATE
|
ARG BUILD_DATE
|
||||||
@@ -9,8 +9,8 @@ LABEL maintainer="aptalca"
|
|||||||
# environment settings
|
# environment settings
|
||||||
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2
|
ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2
|
||||||
|
|
||||||
# install packages
|
|
||||||
RUN \
|
RUN \
|
||||||
|
echo "**** install runtime pacakges ****" && \
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
curl \
|
curl \
|
||||||
php7-ctype \
|
php7-ctype \
|
||||||
@@ -18,18 +18,19 @@ RUN \
|
|||||||
php7-tokenizer \
|
php7-tokenizer \
|
||||||
tar && \
|
tar && \
|
||||||
echo "**** install heimdall ****" && \
|
echo "**** install heimdall ****" && \
|
||||||
HEIM_VER="$(curl -sX GET https://api.github.com/repos/linuxserver/Heimdall/releases/latest | grep 'tag_name' | cut -d\" -f4)" && \
|
|
||||||
mkdir -p \
|
mkdir -p \
|
||||||
/var/www/localhost/heimdall && \
|
/var/www/localhost/heimdall && \
|
||||||
|
HEIM_VER=$(curl -sX GET "https://api.github.com/repos/linuxserver/Heimdall/releases/latest" \
|
||||||
|
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
|
||||||
curl -o \
|
curl -o \
|
||||||
/tmp/heimdall.tar.gz -L \
|
/tmp/heimdall.tar.gz -L \
|
||||||
"https://github.com/linuxserver/Heimdall/archive/${HEIM_VER}.tar.gz" && \
|
"https://github.com/linuxserver/Heimdall/archive/${HEIM_VER}.tar.gz" && \
|
||||||
tar xf \
|
tar xf \
|
||||||
/tmp/heimdall.tar.gz -C \
|
/tmp/heimdall.tar.gz -C \
|
||||||
/var/www/localhost/heimdall --strip-components=1 && \
|
/var/www/localhost/heimdall --strip-components=1 && \
|
||||||
echo "** cleanup **" && \
|
echo "**** cleanup ****" && \
|
||||||
rm -rf \
|
rm -rf \
|
||||||
/tmp/*
|
/tmp/*
|
||||||
|
|
||||||
# add local files
|
# add local files
|
||||||
COPY root/ /
|
COPY root/ /
|
||||||
|
|||||||
@@ -86,5 +86,6 @@ This image now supports password protection through htpasswd. Run the following
|
|||||||
|
|
||||||
## Versions
|
## Versions
|
||||||
|
|
||||||
|
+ **05.09.18:** Rebase to alpine linux 3.8.
|
||||||
+ **06.03.18:** Use password protection if htpasswd is set. Existing users can delete their default site config at /config/nginx/site-confs/default and restart the container, a new default site config with htpasswd support will be created in its place
|
+ **06.03.18:** Use password protection if htpasswd is set. Existing users can delete their default site config at /config/nginx/site-confs/default and restart the container, a new default site config with htpasswd support will be created in its place
|
||||||
+ **12.02.18:** Initial Release.
|
+ **12.02.18:** Initial Release.
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
#!/usr/bin/with-contenv bash
|
#!/usr/bin/with-contenv bash
|
||||||
|
|
||||||
# create folders
|
# make our folders
|
||||||
mkdir -p \
|
mkdir -p \
|
||||||
/config/www/{backgrounds,icons}
|
/config/www/{backgrounds,icons}
|
||||||
|
|
||||||
# symlink user config
|
# create symlinks
|
||||||
|
|
||||||
symlinks=( \
|
symlinks=( \
|
||||||
/var/www/localhost/heimdall/storage/app/public/backgrounds \
|
/var/www/localhost/heimdall/storage/app/public/backgrounds \
|
||||||
|
|||||||
Reference in New Issue
Block a user