Skip to content

Commit

Permalink
Fix Hadolint error wrt 'find' over 'ls'
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdcordeiro committed Mar 1, 2023
1 parent 1450578 commit cfed0cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chiselled-jre/Dockerfile.22.04
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ RUN mkdir -p /rootfs \
media-types_data \
libjpeg-turbo8_libs \
base-files_bin \
&& ln -s $(ls /rootfs/usr/lib/jvm/java-8-openjdk-*/jre/bin/java | sed 's/\/rootfs//') /rootfs/usr/bin/
&& ln -s "$(find /rootfs/usr/lib/jvm/java-8-openjdk-*/jre/bin -name java | sed 's/\/rootfs//')" /rootfs/usr/bin/
RUN install -d -m 0755 -o $UID -g $GID /rootfs/home/$USER \
&& echo -e "root:x:0:\n$GROUP:x:$GID:" >/rootfs/etc/group \
&& echo -e "root:x:0:0:root:/root:/noshell\n$USER:x:$UID:$GID::/home/$USER:/noshell" >/rootfs/etc/passwd
Expand Down

0 comments on commit cfed0cb

Please sign in to comment.