Skip to content

Commit 2b83501

Browse files
committed
Bring COPY statement down
this will help in using cache and won't trigger rebuild on small changes to the script files. Signed-off-by: Riddhesh Sanghvi <riddhesh237@gmail.com>
1 parent 1866e56 commit 2b83501

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ ENV DOCKER_USER=rtbot
1515
ENV ACTION_WORKDIR=/home/$DOCKER_USER
1616
ENV DEBIAN_FRONTEND=noninteractive
1717

18-
COPY entrypoint.sh main.sh /usr/local/bin/
19-
20-
RUN chmod +x /usr/local/bin/entrypoint.sh /usr/local/bin/main.sh
21-
2218
RUN useradd -m -s /bin/bash $DOCKER_USER \
2319
&& mkdir -p $ACTION_WORKDIR \
2420
&& chown -R $DOCKER_USER $ACTION_WORKDIR
@@ -61,6 +57,10 @@ RUN set -ex \
6157
&& php -v \
6258
&& vault -v;
6359

60+
COPY entrypoint.sh main.sh /usr/local/bin/
61+
62+
RUN chmod +x /usr/local/bin/entrypoint.sh /usr/local/bin/main.sh
63+
6464
USER $DOCKER_USER
6565

6666
WORKDIR $ACTION_WORKDIR

0 commit comments

Comments
 (0)