Skip to content

Commit

Permalink
Merge pull request #161 from BrightLocal/fix/gemVersion
Browse files Browse the repository at this point in the history
use old gem version
  • Loading branch information
alnarozhny authored Oct 21, 2024
2 parents 7948dc2 + 1729a86 commit c2c1a4d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@ COPY . /srv/slate
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
nodejs \
&& gem install bundler \
&& bundle install \
&& apt-get remove -y build-essential \
nodejs

# Install the updated bundler version
RUN gem install bundler -v 2.4.22

# Install the dependencies
RUN bundle install

# Clean up to reduce image size
RUN apt-get remove -y build-essential \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*

Expand Down
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
services:
apidoc:
build:
context: .
hostname: 'bl-apidoc'
container_name: 'bl-apidoc'
restart: always

0 comments on commit c2c1a4d

Please sign in to comment.