From 5fb10ec68688e43226a24e1bd3e9a4a8feb19145 Mon Sep 17 00:00:00 2001 From: viehlieb Date: Fri, 6 Jan 2023 17:01:15 +0100 Subject: [PATCH] make foodsoft run for dev on rails 7 and ruby 2.7 --- Dockerfile-dev | 3 ++- docker-compose-dev.yml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile-dev b/Dockerfile-dev index ca7865a5..37dce5f6 100644 --- a/Dockerfile-dev +++ b/Dockerfile-dev @@ -1,4 +1,4 @@ -FROM ruby:2.6 +FROM ruby:2.7 # Install dependencies RUN deps='libmagic-dev chromium nodejs' && \ @@ -19,6 +19,7 @@ ENV PORT=3000 \ WORKDIR /app +RUN gem install bundler RUN bundle config build.nokogiri "--use-system-libraries" EXPOSE 3000 diff --git a/docker-compose-dev.yml b/docker-compose-dev.yml index 0a8b3fec..5358430a 100644 --- a/docker-compose-dev.yml +++ b/docker-compose-dev.yml @@ -11,6 +11,7 @@ services: build: context: . dockerfile: Dockerfile-dev + platform: linux/x86_64 command: ./proc-start worker volumes: - bundle:/usr/local/bundle