chmod docker-mods script on ADD

This commit is contained in:
TheSpad 2022-11-23 11:22:17 +00:00
parent 2ba1fe57c9
commit 2ce67bd91b
No known key found for this signature in database
GPG key ID: 08F06191F4587860
3 changed files with 9 additions and 6 deletions

View file

@ -1,3 +1,5 @@
# syntax=docker/dockerfile:1
FROM alpine:3.15 as rootfs-stage FROM alpine:3.15 as rootfs-stage
# environment # environment
@ -60,7 +62,7 @@ ARG MODS_VERSION="v3"
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}" LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="TheLamer" LABEL maintainer="TheLamer"
ADD "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/docker-mods.${MODS_VERSION}" "/docker-mods" ADD --chmod=744 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/docker-mods.${MODS_VERSION}" "/docker-mods"
# environment variables # environment variables
ENV PS1="$(whoami)@$(hostname):$(pwd)\\$ " \ ENV PS1="$(whoami)@$(hostname):$(pwd)\\$ " \
@ -89,7 +91,6 @@ RUN \
/app \ /app \
/config \ /config \
/defaults && \ /defaults && \
chmod +x /docker-mods && \
echo "**** cleanup ****" && \ echo "**** cleanup ****" && \
rm -rf \ rm -rf \
/tmp/* /tmp/*

View file

@ -1,3 +1,5 @@
# syntax=docker/dockerfile:1
FROM alpine:3.15 as rootfs-stage FROM alpine:3.15 as rootfs-stage
# environment # environment
@ -60,7 +62,7 @@ ARG MODS_VERSION="v3"
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}" LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="TheLamer" LABEL maintainer="TheLamer"
ADD "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/docker-mods.${MODS_VERSION}" "/docker-mods" ADD --chmod=744 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/docker-mods.${MODS_VERSION}" "/docker-mods"
# environment variables # environment variables
ENV PS1="$(whoami)@$(hostname):$(pwd)\\$ " \ ENV PS1="$(whoami)@$(hostname):$(pwd)\\$ " \
@ -89,7 +91,6 @@ RUN \
/app \ /app \
/config \ /config \
/defaults && \ /defaults && \
chmod +x /docker-mods && \
echo "**** add qemu ****" && \ echo "**** add qemu ****" && \
curl -o \ curl -o \
/usr/bin/qemu-aarch64-static -L \ /usr/bin/qemu-aarch64-static -L \

View file

@ -1,3 +1,5 @@
# syntax=docker/dockerfile:1
FROM alpine:3.15 as rootfs-stage FROM alpine:3.15 as rootfs-stage
# environment # environment
@ -60,7 +62,7 @@ ARG MODS_VERSION="v3"
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}" LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="TheLamer" LABEL maintainer="TheLamer"
ADD "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/docker-mods.${MODS_VERSION}" "/docker-mods" ADD --chmod=744 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/docker-mods.${MODS_VERSION}" "/docker-mods"
# environment variables # environment variables
ENV PS1="$(whoami)@$(hostname):$(pwd)\\$ " \ ENV PS1="$(whoami)@$(hostname):$(pwd)\\$ " \
@ -89,7 +91,6 @@ RUN \
/app \ /app \
/config \ /config \
/defaults && \ /defaults && \
chmod +x /docker-mods && \
echo "**** add qemu ****" && \ echo "**** add qemu ****" && \
curl -o \ curl -o \
/usr/bin/qemu-arm-static -L \ /usr/bin/qemu-arm-static -L \