I just got a new server up and running tonight with docker on digital ocean (after a few days of trial and error and beating my head against the wall). Now that it’s up and running though is the first time I’ve hit what feels like a true dead end. I made some changes to the
settings.yml to change the description etc and wanted to rebuild with the changes.
sudo docker-compose build
which then fails at this point:
Tasks: TOP => assets:generate_static_pages (See full trace by running task with --trace) ERROR: Service 'web' failed to build: The command '/bin/sh -c cd ~ && OTP_SECRET=precompile_placeholder SECRET_KEY_BASE=precompile_placeholder rails assets:precompile && yarn cache clean' returned a non-zero code: 1
Anyone know what I might be able to do to fix it? Note that I do have
SECRET_KEY_BASE set in my
.env.production. Also after seeing Installing libxml2 and libxslt on Docker by ykzts · Pull Request #9680 · tootsuite/mastodon · GitHub added a change to
--use-system-libraries which was referenced as a fix in Docker build fails due to bundler's error · Issue #9672 · tootsuite/mastodon · GitHub I added yarn to my system but it had no effect.
Docker version 18.09.2, build 6247962
Also note I’m building my own image