FROM ruby:2.6.4-alpine3.10 MAINTAINER Timeboard # Setting up user # - envs ARG USER_UID ARG USER_NAME # - Create user. RUN adduser --disabled-password --gecos "" --uid "$USER_UID" "$USER_NAME" # Install Ruby on Rails Essentials RUN apk add --update build-base && \ apk add --update tzdata && \ apk add --update nodejs && \ apk add --update yarn && \ apk add --update mariadb-dev && \ apk add --update imagemagick && \ apk add --update ffmpeg && \ apk add --update mupdf && \ apk add --update mupdf-tools && \ rm -rf /var/cache/apk/* USER "$USER_NAME" # Install gems RUN gem install bundler && \ gem install god # Generating entrypoint file RUN echo -e '#!/bin/sh\n\ gem install --no-document --local smartcloud\n\ exec "$@"' >> /entrypoint; chmod +x /entrypoint; # Set entrypoint ENTRYPOINT ["/entrypoint"] # Command to execute at container start CMD ["buildpacker", "start"]