Skip to content

Commit

Permalink
Merge pull request #79 from ubuntu-rocks/fix-hadolint
Browse files Browse the repository at this point in the history
Fix hadolint
  • Loading branch information
cjdcordeiro authored Mar 1, 2023
2 parents c2e60df + 621c340 commit 33b69b1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

# Lint the Dockerfiles
- name: Lint the Dockerfile
uses: hadolint/[email protected]
with:
dockerfile: chiselled-jre/Dockerfile.${{ matrix.ubuntu-release }}
ignore: DL3008,DL3015,SC3028

- name: Build the chiselled-jre image
run: |
docker buildx build \
Expand Down
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 33b69b1

Please sign in to comment.