Skip to content

Commit

Permalink
(#77) changed order in dockerfile for caching
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffle committed Oct 29, 2020
1 parent a92c476 commit aae004d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Dockerfile.sakuli
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ ENV REFRESHED_AT=${BUILD_DATE} \
SAKULI_EXECUTION_DIR=/testsuite_execution \
LOG_MODE=ci

### Install Sakuli
COPY --chown=1000:1000 ./src/sakuli/sakuli.sh $HOME/
RUN chmod a+x $HOME/sakuli.sh && \
$HOME/sakuli.sh $SAKULI_VERSION $NPM_ACCESS_TOKEN

USER 0

### Create SAKULI_EXECUTION_DIR and set permissions correctly
Expand All @@ -33,14 +38,8 @@ RUN mkdir ${SAKULI_EXECUTION_DIR} && chmod 777 ${SAKULI_EXECUTION_DIR}
COPY ./src/common/scripts $STARTUPDIR
RUN $INST_SCRIPTS/set_user_permission.sh $STARTUPDIR

COPY ./src/sakuli/sakuli.sh $INST_SCRIPTS/
RUN chmod a+x $INST_SCRIPTS/sakuli.sh

USER 1000:1000

### Install Sakuli
RUN $INST_SCRIPTS/sakuli.sh $SAKULI_VERSION $NPM_ACCESS_TOKEN

RUN $INST_SCRIPTS/startup.sh

ENTRYPOINT ["/dockerstartup/startup.sh"]

0 comments on commit aae004d

Please sign in to comment.