summaryrefslogtreecommitdiffstats
path: root/opendaylight/silicon/silicon-alpine/src/main
diff options
context:
space:
mode:
authorSingal, Kapil (ks220y) <ks220y@att.com>2021-06-14 12:16:06 -0400
committerKAPIL SINGAL <ks220y@att.com>2021-06-14 16:58:40 +0000
commit3d55822228b8b8d935ddd827ba7d6b1f3f292cbc (patch)
tree09376dbc4652e0a5b0f21385bf881cfc2df49ea5 /opendaylight/silicon/silicon-alpine/src/main
parentd783f849b949e551f00febe14b5b944db378d4cc (diff)
Effort to reduce image size and layers
Issue-ID: CCSDK-3226 Change-Id: I3bb7b8a9eeef866fdc23804e06b2908d33f63c06 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com>
Diffstat (limited to 'opendaylight/silicon/silicon-alpine/src/main')
-rw-r--r--opendaylight/silicon/silicon-alpine/src/main/docker/Dockerfile7
1 files changed, 5 insertions, 2 deletions
diff --git a/opendaylight/silicon/silicon-alpine/src/main/docker/Dockerfile b/opendaylight/silicon/silicon-alpine/src/main/docker/Dockerfile
index 9c8099a3..e0091984 100644
--- a/opendaylight/silicon/silicon-alpine/src/main/docker/Dockerfile
+++ b/opendaylight/silicon/silicon-alpine/src/main/docker/Dockerfile
@@ -22,15 +22,18 @@ COPY system $ODL_HOME/system
## END OF STAGE0 ##
+#################################################
## This will create actual image
-FROM onap/ccsdk-alpine-j11-image:${project.docker.latestfulltag.version}
+FROM scratch
MAINTAINER CCSDK Team (onap-ccsdk@lists.onap.org)
USER root
+ENV JAVA_HOME /opt/java/openjdk
ENV ODL_HOME /opt/opendaylight/current
-COPY --from=stage0 /opt /opt
+# Copy Everything from stage0
+COPY --from=stage0 / /
# ENTRYPOINT exec /opt/opendaylight/bin/karaf
WORKDIR $ODL_HOME