Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Commit

Permalink
Use bookworm, pull JDK from image using COPY (see https://hub.docker.…
Browse files Browse the repository at this point in the history
  • Loading branch information
sfuhrm committed Jul 5, 2023
1 parent 4383aac commit 15207ac
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@ FROM docker.io/maven:3-eclipse-temurin-17
COPY . /snmpman
RUN cd /snmpman && mvn clean package

FROM docker.io/openjdk:17-bullseye
FROM docker.io/debian:bookworm
ARG JAVA_VERSION=17
ENV JAVA_HOME=/opt/java/openjdk
COPY --from=docker.io/eclipse-temurin:${JAVA_VERSION} /opt/java/openjdk $JAVA_HOME
ENV PATH="${JAVA_HOME}/bin:${PATH}"

#RUN apt-get update && apt-get install --yes snmp tcpdump strace iproute2 net-tools
RUN useradd snmpman
COPY --chown=snmpman:snmpman --from=0 /snmpman/snmpman-cli/target/snmpman-cli-*bin /snmpman
Expand Down

0 comments on commit 15207ac

Please sign in to comment.