Skip to content

Commit

Permalink
Updated docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwinisukale committed Nov 20, 2024
1 parent 4deeab1 commit a02e24b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ RUN usermod -a -G docker_env app
# Use baseimage-docker's init process.
CMD ["/sbin/my_init"]

# Use Ruby 2.6.8
RUN bash -lc 'rvm --default use ruby-2.6.8'
# Use Ruby 3.1.6
RUN bash -lc 'rvm --default use ruby-3.1.6'

# Update installed APT packages
RUN apt-get update && apt-get upgrade -y -o Dpkg::Options::="--force-confold" && \
Expand All @@ -35,8 +35,8 @@ WORKDIR /home/app/webapp
RUN mkdir -p vendor/bundle && \
chown -R app:app . && \
chmod -R 755 . && \
gem update --system 3.4.22 && \
gem install bundler -v 2.4.22 && \
gem update --system 3.5.6 && \
gem install bundler -v 2.5.6 && \
/sbin/setuser app bundle install --path vendor/bundle

# Copy webapp folder
Expand Down

0 comments on commit a02e24b

Please sign in to comment.