FROM ruby:2.3
ENV DEBIAN_FRONTEND noninteractive
ENV BUNDLE_APP_CONFIG /app/.bundle
ENV BUNDLE_BIN /app/shared/bundle/bin
RUN apt update && apt -y full-upgrade && apt -y install file sox libsox-fmt-mp3 libsox-fmt-base libsqlite3-dev && apt-get clean
RUN adduser --system --disabled-password --uid 3000 --group --home /app rails
RUN gem install bundler --no-rdoc --no-ri
ADD runapp /
CMD /runapp
