docker: Restore more liberal permissions /home/user. (#6803)

This commit is contained in:
Félinàun Chapeau 2024-12-31 05:47:09 +01:00 committed by GitHub
parent 0e86c0d17e
commit cb541463ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 12 additions and 6 deletions

View File

@ -11,7 +11,8 @@ SHELL ["/bin/bash", "-c"]
# Likely to match the first regular user:group created on the host.
RUN addgroup --gid 1000 user; \
adduser --disabled-password --gecos '' --uid 1000 --gid 1000 user;
adduser --disabled-password --gecos '' --uid 1000 --gid 1000 user; \
chmod a+rx /home/user;
USER user

View File

@ -15,7 +15,8 @@ COPY "qemu-arm-static" "/usr/bin/"
# Likely to match the first regular user:group created on the host.
RUN addgroup --gid 1000 user; \
adduser --disabled-password --gecos '' --uid 1000 --gid 1000 user;
adduser --disabled-password --gecos '' --uid 1000 --gid 1000 user; \
chmod a+rx /home/user;
USER user

View File

@ -15,7 +15,8 @@ COPY "qemu-aarch64-static" "/usr/bin/"
# Likely to match the first regular user:group created on the host.
RUN addgroup --gid 1000 user; \
adduser --disabled-password --gecos '' --uid 1000 --gid 1000 user;
adduser --disabled-password --gecos '' --uid 1000 --gid 1000 user; \
chmod a+rx /home/user;
USER user

View File

@ -11,7 +11,8 @@ SHELL ["/bin/bash", "-c"]
# Likely to match the first regular user:group created on the host.
RUN addgroup --gid 1000 user; \
adduser --disabled-password --gecos '' --uid 1000 --gid 1000 user;
adduser --disabled-password --gecos '' --uid 1000 --gid 1000 user; \
chmod a+rx /home/user;
USER user

View File

@ -15,7 +15,8 @@ COPY "qemu-arm-static" "/usr/bin/"
# Likely to match the first regular user:group created on the host.
RUN addgroup --gid 1000 user; \
adduser --disabled-password --gecos '' --uid 1000 --gid 1000 user;
adduser --disabled-password --gecos '' --uid 1000 --gid 1000 user; \
chmod a+rx /home/user;
USER user

View File

@ -15,7 +15,8 @@ COPY "qemu-aarch64-static" "/usr/bin/"
# Likely to match the first regular user:group created on the host.
RUN addgroup --gid 1000 user; \
adduser --disabled-password --gecos '' --uid 1000 --gid 1000 user;
adduser --disabled-password --gecos '' --uid 1000 --gid 1000 user; \
chmod a+rx /home/user;
USER user