Replace the version-specific Dockerfiles with one staged Dockerfile

This commit is contained in:
Jyri-Petteri Paloposki 2024-07-18 17:12:31 +03:00
parent 5940fe10a6
commit ff5adc5696
19 changed files with 75 additions and 271 deletions

View file

@ -0,0 +1,21 @@
version: '3'
services:
web:
build:
context: ..
target: test
args:
RUBY_VERSION: ${RUBY_VERSION}
environment:
# These are set in script/ci-build, so we need to pass-thru them.
RAILS_ENV: $RAILS_ENV
DATABASE_NAME: "/app/db/db.sqlite"
DATABASE_TYPE: sqlite3
volumes:
- ${VOLUME:-sqlite}:/app/db:Z
- ${VOLUME:-..}/config/database.docker.yml:/app/config/database.yml:Z
- ${VOLUME:-..}/config/site.docker.yml:/app/config/site.yml:Z
ports:
- 3000:3000
volumes:
sqlite: {}