Closed
Description
Hello
I'm using redmine:alpine3.21 on MacOS 15.1.1
I need to serve static files by Puma.
I'm running the container with the following command :
docker run -d \
-v /srv/redmine/config/database.yml:/usr/src/redmine/config/database.yml \
-v /srv/redmine/config/configuration.yml:/usr/src/redmine/config/configuration.yml \
-v /srv/redmine/config/files:/usr/src/redmine/files \
-v /var/run/mysqld/mysqld.sock:/tmp/mysqld.sock \
-v /srv/redmine/config/master.key:/usr/src/redmine/config/master.key \
-v /srv/redmine/config/credentials.yml.enc:/usr/src/redmine/config/credentials.yml.enc \
-p 3000:3000 \
-e RAILS_SERVE_STATIC_FILES=true \
redmine:alpine3.21
And rails does not serve the static assets:
I got 404 when issuing
wget http://127.0.0.1:3000/assets/tablesort-5.2.1.min-c6968762.js
I was debugging the static.rb middleware and I discovered that the assets generated when container starting are not readable.
docker exec -it --user redmine:redmine REDMINE sh
ruby -e "puts File.readable?('/usr/src/redmine/public/assets/tablesort-5.2.1.min-c6968762.js')"
I got false
Could someone explain me why I got this behaviour, please?
Metadata
Metadata
Assignees
Labels
No labels