Skip to content

Commit 2004480

Browse files
authored
address some hadolint warnings (#4099)
1 parent 80cd450 commit 2004480

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,13 @@ FROM tomcat:10.0-jdk11
4343
LABEL maintainer="https://github.com/oracle/opengrok"
4444

4545
# Add Perforce apt source.
46+
# hadolint ignore=DL3008,DL3009
4647
RUN apt-get update && \
47-
apt-get install -y gnupg2
48+
apt-get install --no-install-recommends -y gnupg2
49+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
50+
# hadolint ignore=DL3059
4851
RUN curl -sS https://package.perforce.com/perforce.pubkey | gpg --dearmor > /etc/apt/trusted.gpg.d/perforce.gpg
52+
# hadolint ignore=DL3059
4953
RUN echo 'deb http://package.perforce.com/apt/ubuntu bionic release' > /etc/apt/sources.list.d/perforce.list
5054

5155
# install dependencies and Python tools

0 commit comments

Comments
 (0)