Docker container for testing

Is there a way to configure the docker container ( to run tests? Currently I’ve been running the container and using docker cp /path/to/change zammad:/path/to/change to move my files and then running the tests through the bash console docker exec -ti zammad /bin/bash. This can’t be the best way to do things, so what are your solutions? I’d like to keep my testing containerized, but if there is no current solution for this I’ll play around with the Dockerfile myself

The main issue is that if you specify RAILS_ENV=test in the dockerfile, the script does not initialize a database. And if you use any other environment, the test database is not initialized either way so you can’t switch inside the shell to run tests.