Skip to content

Commit 8146a3d

Browse files
clay-lakerenovate[bot]zhijie-yang
authored
feat(dotnet 6.0): add shadow file to chiseled rootfs (#777)
* feat: add shadow file to chiseled rootfs * chore(deps): update ubuntu.azurecr.io/ubuntu:22.04 docker digest to ce8fb30 (#785) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update ubuntu.azurecr.io/ubuntu:22.04 docker digest to b160411 (#789) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * chore(deps): update hadolint/hadolint-action action to v3.3.0 (#781) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> * fix: lock root accoun via passwd file --------- Signed-off-by: zhijie-yang <zhijie.yang@canonical.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: zhijie-yang <zhijie.yang@canonical.com>
1 parent 416f994 commit 8146a3d

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

dotnet-aspnet/Dockerfile.22.04

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ RUN chmod +x /usr/bin/chisel-wrapper
1919
RUN mkdir -p /rootfs/etc \
2020
&& install -d -m 0755 -o "$UID" -g "$GID" "/rootfs/home/$USER" \
2121
&& echo -e "root:x:0:\n$GROUP:x:$GID:" >/rootfs/etc/group \
22-
&& echo -e "root:x:0:0:root:/root:/noshell\n$USER:x:$UID:$GID::/home/$USER:/noshell" >/rootfs/etc/passwd
22+
&& echo -e "root:!:0:0:root:/root:/noshell\n$USER:x:$UID:$GID::/home/$USER:/noshell" > /rootfs/etc/passwd
2323

2424
RUN chisel-wrapper --generate-dpkg-status /status -- --release "ubuntu-$UBUNTU_RELEASE" --root /rootfs \
2525
base-files_base \

dotnet-aspnet/Dockerfile.22.10.unsupported

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ARG USER UID GROUP GID
2323
RUN mkdir -p /rootfs/etc \
2424
&& install -d -m 0755 -o $UID -g $GID /rootfs/home/$USER \
2525
&& echo -e "root:x:0:\n$GROUP:x:$GID:" >/rootfs/etc/group \
26-
&& echo -e "root:x:0:0:root:/root:/noshell\n$USER:x:$UID:$GID::/home/$USER:/noshell" >/rootfs/etc/passwd
26+
&& echo -e "root:!:0:0:root:/root:/noshell\n$USER:x:$UID:$GID::/home/$USER:/noshell" > /rootfs/etc/passwd
2727

2828
FROM scratch AS image-prep
2929
ENV \

dotnet-deps/Dockerfile.22.04

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RUN chmod +x /usr/bin/chisel-wrapper
1818
RUN mkdir -p /rootfs/etc \
1919
&& install -d -m 0755 -o "$UID" -g "$GID" "/rootfs/home/$USER" \
2020
&& echo -e "root:x:0:\n$GROUP:x:$GID:" >/rootfs/etc/group \
21-
&& echo -e "root:x:0:0:root:/root:/noshell\n$USER:x:$UID:$GID::/home/$USER:/noshell" >/rootfs/etc/passwd
21+
&& echo -e "root:!:0:0:root:/root:/noshell\n$USER:x:$UID:$GID::/home/$USER:/noshell" > /rootfs/etc/passwd
2222

2323
RUN chisel-wrapper --generate-dpkg-status /status -- --release "ubuntu-$UBUNTU_RELEASE" --root /rootfs \
2424
base-files_base \

dotnet-deps/Dockerfile.22.10.unsupported

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ARG USER UID GROUP GID
2323
RUN mkdir -p /rootfs/etc \
2424
&& install -d -m 0755 -o $UID -g $GID /rootfs/home/$USER \
2525
&& echo -e "root:x:0:\n$GROUP:x:$GID:" >/rootfs/etc/group \
26-
&& echo -e "root:x:0:0:root:/root:/noshell\n$USER:x:$UID:$GID::/home/$USER:/noshell" >/rootfs/etc/passwd
26+
&& echo -e "root:!:0:0:root:/root:/noshell\n$USER:x:$UID:$GID::/home/$USER:/noshell" > /rootfs/etc/passwd
2727

2828
FROM scratch AS image-prep
2929
ENV \

dotnet-runtime/Dockerfile.22.04

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ RUN chmod +x /usr/bin/chisel-wrapper
1818
RUN mkdir -p /rootfs/etc \
1919
&& install -d -m 0755 -o "$UID" -g "$GID" "/rootfs/home/$USER" \
2020
&& echo -e "root:x:0:\n$GROUP:x:$GID:" >/rootfs/etc/group \
21-
&& echo -e "root:x:0:0:root:/root:/noshell\n$USER:x:$UID:$GID::/home/$USER:/noshell" >/rootfs/etc/passwd
21+
&& echo -e "root:!:0:0:root:/root:/noshell\n$USER:x:$UID:$GID::/home/$USER:/noshell" > /rootfs/etc/passwd
2222

2323
RUN chisel-wrapper --generate-dpkg-status /status -- --release "ubuntu-$UBUNTU_RELEASE" --root /rootfs \
2424
base-files_base \

dotnet-runtime/Dockerfile.22.10.unsupported

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ARG USER UID GROUP GID
2323
RUN mkdir -p /rootfs/etc \
2424
&& install -d -m 0755 -o $UID -g $GID /rootfs/home/$USER \
2525
&& echo -e "root:x:0:\n$GROUP:x:$GID:" >/rootfs/etc/group \
26-
&& echo -e "root:x:0:0:root:/root:/noshell\n$USER:x:$UID:$GID::/home/$USER:/noshell" >/rootfs/etc/passwd
26+
&& echo -e "root:!:0:0:root:/root:/noshell\n$USER:x:$UID:$GID::/home/$USER:/noshell" > /rootfs/etc/passwd
2727

2828
FROM scratch AS image-prep
2929
ENV \

0 commit comments

Comments
 (0)