From f2c5e42a91b577fd0a5aa48e107eead9e8e1d4f2 Mon Sep 17 00:00:00 2001 From: Malaber Date: Mon, 13 Apr 2026 17:50:32 +0200 Subject: [PATCH] Fix backend test image contents --- .dockerignore | 3 +++ docker/production/Dockerfile | 8 +------- docker/test/Dockerfile | 1 + 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.dockerignore b/.dockerignore index 85f5647..3bb6684 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,6 +1,9 @@ .git tmp/** coverage/** +db/*.sqlite3 +db/*.sqlite3-* +db/*.sqlite3.* docker/** .gitignore .hound.yml diff --git a/docker/production/Dockerfile b/docker/production/Dockerfile index 0566865..2740262 100644 --- a/docker/production/Dockerfile +++ b/docker/production/Dockerfile @@ -5,13 +5,7 @@ RUN apt-get update -qq && apt-get install -y openssl git build-essential libpq-d WORKDIR /app COPY Gemfile* /app/ RUN gem install bundler:2.3.13 && bundle config set deployment 'true' && bundle install -COPY app /app/app -COPY bin /app/bin -COPY config /app/config -COPY db /app/db -COPY public /app/public -COPY script /app/script -COPY config.ru Rakefile /app/ +COPY . /app # Duplicate production environment to beta environment COPY config/environments/production.rb config/environments/beta.rb ENV RAILS_ENV production diff --git a/docker/test/Dockerfile b/docker/test/Dockerfile index dffc650..63bd222 100644 --- a/docker/test/Dockerfile +++ b/docker/test/Dockerfile @@ -5,6 +5,7 @@ WORKDIR /app RUN apt-get update -qq && apt-get install -y python3 python3-pip && apt-get clean && python3 -m pip install --no-cache-dir invoke RUN bundle config set with 'development test' && bundle install COPY tasks.py /app/tasks.py +COPY e2e /app/e2e COPY spec /app/spec COPY .rspec /app/.rspec ENV RAILS_ENV test