From 9d80eef549fd0afc0eb8fef263fe89e229b08ef5 Mon Sep 17 00:00:00 2001 From: Wendel Fabian Chinsamy Date: Thu, 28 Mar 2024 14:28:05 +0200 Subject: [PATCH] reorder operations in dockerfile --- Dockerfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6a17086c..4ab184aa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,6 +33,11 @@ COPY vendor/docker/00_app_env.conf /etc/nginx/conf.d/00_app_env.conf # Use Amazon NTP servers COPY vendor/docker/ntp.conf /etc/ntp.conf +# Add Runit script for shoryuken workers +WORKDIR /home/app/webapp +RUN mkdir /etc/service/shoryuken +ADD vendor/docker/shoryuken.sh /etc/service/shoryuken/run + # Copy webapp folder COPY . /home/app/webapp/ RUN mkdir -p tmp/pids && \ @@ -42,7 +47,6 @@ RUN mkdir -p tmp/pids && \ # Install Ruby gems WORKDIR /home/app/webapp -COPY Gemfile* /home/app/webapp/ RUN mkdir -p vendor/bundle && \ chown -R app:app . && \ chmod -R 755 . && \ @@ -54,11 +58,6 @@ RUN mkdir -p vendor/bundle && \ RUN rm -f /etc/service/sshd/down && \ /etc/my_init.d/00_regen_ssh_host_keys.sh -# Add Runit script for shoryuken workers -WORKDIR /home/app/webapp -RUN mkdir /etc/service/shoryuken -ADD vendor/docker/shoryuken.sh /etc/service/shoryuken/run - # Run additional scripts during container startup (i.e. not at build time) RUN mkdir -p /etc/my_init.d