Rails & docker - can't install json gem Rails & docker - can't install json gem json json

Rails & docker - can't install json gem


As with any Ruby installation, you need dev tools to install gems with native extensions:

RUN apk update \ && apk add --no-cache  \    build-base  \    ruby-dev


panamax-ui uses Alpine Linux base image, so you can try to add ruby-json apk package to Dockerfile to get json gem installed properly:

FROM centurylink/panamax-ruby-base:0.4.0RUN apk-install ruby-jsonCMD bundle exec rails s