From 8a24498b989debede14da0c34da556a438711bd6 Mon Sep 17 00:00:00 2001 From: davidg73 <david.gunnarsson@univie.ac.at> Date: Thu, 17 Apr 2025 11:40:03 +0200 Subject: [PATCH] Fix workdir path for production --- Dockerfile.production | 5 ++--- docker-compose.production.yml | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile.production b/Dockerfile.production index e13b3dc..229a70c 100644 --- a/Dockerfile.production +++ b/Dockerfile.production @@ -14,8 +14,8 @@ RUN apt-get update && apt-get install -y \ # Configure the main working directory. This is the base # directory used in any further RUN, COPY, and ENTRYPOINT # commands. -RUN mkdir -p /facem -WORKDIR /facem +RUN mkdir -p /facem-backoffice +WORKDIR /facem-backoffice # Set Rails to run in production ENV RAILS_ENV=production @@ -32,7 +32,6 @@ ENV BUNDLE_PACKAGER__DEV=$BUNDLE_PACKAGER__DEV # Doc: https://bundler.io/v2.3/man/bundle-install.1.html RUN gem install bundler && \ bundle config set without 'development test' && \ - bundle config set --local force_ruby_platform true && \ bundle install # Copy the rest of the application diff --git a/docker-compose.production.yml b/docker-compose.production.yml index dd7b19a..c3a7d84 100644 --- a/docker-compose.production.yml +++ b/docker-compose.production.yml @@ -6,7 +6,7 @@ services: command: bash -c "rm -f tmp/pids/server.pid && bin/rails assets:precompile && bin/rails s -p 3000 -b '0.0.0.0'" hostname: app10.cc.univie.ac.at volumes: - - .:/gitlab.phaidra.org/facem/facem-backoffice + - .:/facem-backoffice ports: - "3000:3000" env_file: -- GitLab