Fixed Dockerfile for changes in goreman release file

This commit is contained in:
alyssadev 2021-06-17 15:14:47 +10:00
parent dddf776a18
commit 7024ae4e26

View File

@ -5,7 +5,7 @@ RUN groupadd -r dummy && useradd -r -g dummy dummy -u 1000
# webui + aria2 # webui + aria2
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y aria2 busybox curl unzip \ && apt-get install -y aria2 busybox curl \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
ADD ./docs /webui-aria2 ADD ./docs /webui-aria2
@ -19,8 +19,8 @@ RUN GITHUB_REPO="https://github.com/tianon/gosu" \
# goreman supervisor install latest # goreman supervisor install latest
RUN GITHUB_REPO="https://github.com/mattn/goreman" \ RUN GITHUB_REPO="https://github.com/mattn/goreman" \
&& LATEST=`curl -s $GITHUB_REPO"/releases/latest" | grep -Eo "v[0-9]*.[0-9]*.[0-9]*"` \ && LATEST=`curl -s $GITHUB_REPO"/releases/latest" | grep -Eo "v[0-9]*.[0-9]*.[0-9]*"` \
&& curl -L $GITHUB_REPO"/releases/download/"$LATEST"/goreman_linux_amd64.zip" > goreman.zip \ && curl -L $GITHUB_REPO"/releases/download/"$LATEST"/goreman_"$LATEST"_linux_amd64.tar.gz" > goreman.tar.gz \
&& unzip goreman.zip && mv /goreman /usr/local/bin/goreman && rm -R goreman* && tar xvf goreman.tar.gz && mv /goreman*/goreman /usr/local/bin/goreman && rm -R goreman*
# goreman setup # goreman setup
RUN echo "web: gosu dummy /bin/busybox httpd -f -p 8080 -h /webui-aria2\nbackend: gosu dummy /usr/bin/aria2c --enable-rpc --rpc-listen-all --dir=/data" > Procfile RUN echo "web: gosu dummy /bin/busybox httpd -f -p 8080 -h /webui-aria2\nbackend: gosu dummy /usr/bin/aria2c --enable-rpc --rpc-listen-all --dir=/data" > Procfile