Skip to content

Commit

Permalink
reorder operations in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
wendelfabianchinsamy committed Mar 28, 2024
1 parent 031064d commit 9d80eef
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand All @@ -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 . && \
Expand All @@ -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

Expand Down

0 comments on commit 9d80eef

Please sign in to comment.