Skip to content

Commit

Permalink
troubleshoot failing step
Browse files Browse the repository at this point in the history
  • Loading branch information
chinelo-obitube committed Feb 26, 2025
1 parent be8b017 commit 957f8de
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 @@ -33,9 +33,7 @@ RUN useradd -m -s /bin/bash $DEPLOYUSER && \
USER $DEPLOYUSER

COPY --chown=${DEPLOYUSER}:${DEPLOYUSER} production/bin /opt/bin
RUN chown -R $DEPLOYUSER:$DEPLOYUSER .
# Copy application files
COPY --chown=${DEPLOYUSER}:${DEPLOYUSER} . .

WORKDIR /app

# Copy Gemfiles and install dependencies
Expand All @@ -45,8 +43,9 @@ RUN echo "gem: --no-rdoc --no-ri" > ~/.gemrc && gem install bundler
RUN bundle config force_ruby_platform true
RUN bundle install --jobs 20 --retry 5

RUN touch /app/log/test.log && chmod 777 /app/log/test.log

RUN chown -R $DEPLOYUSER:$DEPLOYUSER .
# Copy application files
COPY --chown=${DEPLOYUSER}:${DEPLOYUSER} . .

# remember the Rails console history
RUN echo 'require "irb/ext/save-history"' > ~/.irbrc && \
Expand Down

0 comments on commit 957f8de

Please sign in to comment.