Skip to content

Commit

Permalink
COPY command with --chmod flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ejcsid committed May 28, 2024
1 parent 3789129 commit 1ca01d6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@
RUN curl ${PENTAHO_URL} -o $HOME/pdi-ce-${PDI_VERSION}.zip
RUN cd $PENTAHO_INSTALL && jar -xvf $HOME/pdi-ce-${PDI_VERSION}.zip

# Make PDI runnable
RUN chmod 775 $PENTAHO_INSTALL/data-integration
RUN chmod 755 $PENTAHO_INSTALL/data-integration/*.sh

##################################################################################################
# Second layer: Here is where we create the final image #
##################################################################################################
Expand All @@ -50,7 +46,10 @@
RUN chmod 775 ${PENTAHO_HOME}

# Copy Pentaho PDI from layer install_unpack to this layer
COPY --from=install_unpack ${PENTAHO_INSTALL}/data-integration/ ${KETTLE_HOME}/
COPY --from=install_unpack --chmod=775 ${PENTAHO_INSTALL}/data-integration/ ${KETTLE_HOME}/

# Make PDI runnable
RUN chmod 755 $PENTAHO_INSTALL/data-integration/*.sh

# Start Carte Server
RUN cd ${KETTLE_HOME}
Expand Down

0 comments on commit 1ca01d6

Please # to comment.