-
Notifications
You must be signed in to change notification settings - Fork 471
/
Copy pathDockerfile
34 lines (26 loc) · 1.25 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#
# Author: Hari Sekhon
# Date: 2016-01-16 09:58:07 +0000 (Sat, 16 Jan 2016)
#
# vim:ts=4:sts=4:sw=4:et
#
# https://github.com/HariSekhon/Dockerfiles
#
# If you're using my code you're welcome to connect with me on LinkedIn and optionally send me feedback to help improve or steer this or other code I publish
#
# https://www.linkedin.com/in/HariSekhon
#
# nosemgrep: dockerfile.audit.dockerfile-source-not-pinned.dockerfile-source-not-pinned
FROM harisekhon/nagios-plugins:centos
LABEL org.opencontainers.image.description="CentOS + my GitHub repos pre-built" \
org.opencontainers.image.authors="Hari Sekhon (https://www.linkedin.com/in/HariSekhon)" \
org.opencontainers.image.url="https://ghcr.io/HariSekhon/centos-github" \
org.opencontainers.image.documentation="https://hub.docker.com/r/harisekhon/centos-github" \
org.opencontainers.image.source="https://github.com/HariSekhon/Dockerfiles"
# unit test for lib-java fails when sh is found in /usr/bin/sh as /usr/bin is earlier in the path than /bin
ENV PATH /bin:$PATH:/github/nagios-plugins:/github/devops-perl-tools:/github/devops-python-tools:/github/bash-tools:/github/spotify
ENV JAVA_HOME=/usr
COPY build.sh /
RUN /build.sh
COPY profile.d/java.sh /etc/profile.d/
CMD ["/bin/bash"]