Skip to content

Commit

Permalink
Reduce layers in container image
Browse files Browse the repository at this point in the history
  • Loading branch information
jwalcorn committed Jan 7, 2024
1 parent 83b1205 commit c5509d2
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,15 @@ RUN echo 'cjot' | passwd --stdin root
# Set up ping to work when kubectl exec'd into the pod (note you have to "su" once kubectl exec'd in, for it to work)
RUN yum -y install iputils

COPY server.xml /config/server.xml
COPY --chown=1001:0 config /config

# This script will add the requested XML snippets to enable Liberty features and grow image to be fit-for-purpose using featureUtility.
# Only available in 'kernel-slim'. The 'full' tag already includes all features for convenience.
# RUN features.sh

COPY jvm.options /config/jvm.options
COPY server/target/server-1.0-SNAPSHOT.war /config/apps/looper.war
COPY client/target/client-1.0-SNAPSHOT.jar /loopctl.jar
COPY *.p12 /config/resources/security/
COPY keystore.xml /config/configDropins/defaults/keystore.xml
COPY client/loopctl.sh /loopctl.sh
COPY --chown=1001:0 server/target/server-1.0-SNAPSHOT.war /config/apps/looper.war
COPY --chown=1001:0 client/target/client-1.0-SNAPSHOT.jar /loopctl.jar
COPY --chown=1001:0 client/loopctl.sh /loopctl.sh

EXPOSE 9080

Expand Down

0 comments on commit c5509d2

Please sign in to comment.