From 1729a86d5c86bb4ccf1080bd5e2be1c55d46ae5d Mon Sep 17 00:00:00 2001 From: Narozhnyi Date: Mon, 21 Oct 2024 14:44:00 +0200 Subject: [PATCH] use old gem version --- Dockerfile | 14 ++++++++++---- docker-compose.yml | 7 +++++++ 2 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 docker-compose.yml diff --git a/Dockerfile b/Dockerfile index d224298aaf0..579a6453050 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/* diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 00000000000..0be9b3e2157 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,7 @@ +services: + apidoc: + build: + context: . + hostname: 'bl-apidoc' + container_name: 'bl-apidoc' + restart: always