Skip to content

Commit 5693e2c

Browse files
committed
fix copy ownership
1 parent 8f81aa5 commit 5693e2c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/resources/docker-files/Dockerfile.create

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ RUN if [ -z "$(getent group oracle)" ]; then hash groupadd &> /dev/null && group
5050
USER oracle
5151

5252
# Install base WLS
53-
COPY $JAVA_PKG $WLS_PKG $WLS_RESP $OTMPDIR/
54-
COPY $ORAINST $INV_LOC
53+
COPY --chown=oracle:oracle $JAVA_PKG $WLS_PKG $WLS_RESP $OTMPDIR/
54+
COPY --chown=oracle:oracle $ORAINST $INV_LOC
5555

5656
RUN tar xzvf $OTMPDIR/$JAVA_PKG -C /u01 \
5757
&& mv /u01/jdk* $JAVA_HOME \

src/main/resources/docker-files/Dockerfile.ph

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ CMD ["sh", "-c", "${SCRIPT_HOME}/startAdminServer.sh"]
9191

9292
# START %%OPATCH_1394%% #
9393
RUN mkdir -p $OTMPDIR/opatch
94-
COPY p28186730_139400_Generic.zip $OTMPDIR/opatch/
94+
COPY --chown=oracle:oracle p28186730_139400_Generic.zip $OTMPDIR/opatch/
9595

9696
RUN unzip $OTMPDIR/opatch/p28186730_139400_Generic.zip -d $OTMPDIR/opatch ; \
9797
/u01/jdk/bin/java -jar $OTMPDIR/opatch/6880880/opatch_generic.jar -silent -invPtrLoc $INV_LOC/$ORAINST \
@@ -102,7 +102,7 @@ RUN unzip $OTMPDIR/opatch/p28186730_139400_Generic.zip -d $OTMPDIR/opatch ; \
102102
# START %%PATCH_APPLY%% #
103103
RUN mkdir -p $OTMPDIR/patches
104104
105-
COPY $PATCHDIR/* $OTMPDIR/patches/
105+
COPY --chown=oracle:oracle $PATCHDIR/* $OTMPDIR/patches/
106106

107107
RUN $ORACLE_HOME/OPatch/opatch napply -silent -oh $ORACLE_HOME -phBaseDir $OTMPDIR/patches
108108

0 commit comments

Comments
 (0)