mirror of
https://github.com/RROrg/rr.git
synced 2025-06-21 05:51:05 +08:00
Merge pull request #520 from fbelavenuto/docker-compiler
Improving docker compiler
This commit is contained in:
commit
e3c79978fb
@ -29,7 +29,6 @@ FROM debian:8-slim
|
|||||||
ENV SHELL=/bin/bash \
|
ENV SHELL=/bin/bash \
|
||||||
ARCH=x86_64
|
ARCH=x86_64
|
||||||
|
|
||||||
COPY --from=stage /opt /opt
|
|
||||||
RUN apt update --yes && \
|
RUN apt update --yes && \
|
||||||
apt install --yes --no-install-recommends --no-install-suggests --allow-unauthenticated \
|
apt install --yes --no-install-recommends --no-install-suggests --allow-unauthenticated \
|
||||||
ca-certificates nano curl bc kmod git gettext texinfo autopoint gawk sudo \
|
ca-certificates nano curl bc kmod git gettext texinfo autopoint gawk sudo \
|
||||||
@ -38,9 +37,9 @@ RUN apt update --yes && \
|
|||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
useradd --create-home --shell /bin/bash --uid 1000 --user-group arpl && \
|
useradd --create-home --shell /bin/bash --uid 1000 --user-group arpl && \
|
||||||
echo "arpl ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/arpl && \
|
echo "arpl ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/arpl && \
|
||||||
chown 1000:1000 -R /opt && \
|
|
||||||
mkdir /output && chown 1000:1000 /output
|
mkdir /output && chown 1000:1000 /output
|
||||||
|
|
||||||
|
COPY --from=stage --chown=1000:1000 /opt /opt
|
||||||
COPY files/ /
|
COPY files/ /
|
||||||
|
|
||||||
USER arpl
|
USER arpl
|
||||||
|
@ -25,8 +25,7 @@ function prepare() {
|
|||||||
URLS["r1000"]="https://global.download.synology.com/download/ToolChain/toolchain/${TOOLCHAIN_VER}/AMD%20x86%20Linux%204.4.180%20%28r1000%29/r1000-${GCCLIB_VER}_x86_64-GPL.txz"
|
URLS["r1000"]="https://global.download.synology.com/download/ToolChain/toolchain/${TOOLCHAIN_VER}/AMD%20x86%20Linux%204.4.180%20%28r1000%29/r1000-${GCCLIB_VER}_x86_64-GPL.txz"
|
||||||
URLS["epyc7002"]="https://global.download.synology.com/download/ToolChain/toolchain/${TOOLCHAIN_VER}/AMD%20x86%20Linux%20Linux%205.10.55%20%28epyc7002%29/epyc7002-${GCCLIB_VER}_x86_64-GPL.txz"
|
URLS["epyc7002"]="https://global.download.synology.com/download/ToolChain/toolchain/${TOOLCHAIN_VER}/AMD%20x86%20Linux%20Linux%205.10.55%20%28epyc7002%29/epyc7002-${GCCLIB_VER}_x86_64-GPL.txz"
|
||||||
|
|
||||||
URLS["3.10.x"]="https://ufpr.dl.sourceforge.net/project/dsgpl/Synology%20NAS%20GPL%20Source/25426branch/bromolow-source/linux-3.10.x.txz"
|
|
||||||
|
|
||||||
# Read platforms/kerver version
|
# Read platforms/kerver version
|
||||||
echo "Reading platforms"
|
echo "Reading platforms"
|
||||||
declare -A PLATFORMS
|
declare -A PLATFORMS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user