lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile in smartcloud-0.0.202 vs lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile in smartcloud-0.0.203

- old
+ new

@@ -1,9 +1,9 @@ FROM ruby:2.6.4-alpine3.10 -MAINTAINER Timeboard <hello@timeboard.me> +LABEL maintainer="Timeboard <hello@timeboard.me>" -# Install Ruby on Rails Essentials +# 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 && \ @@ -11,29 +11,18 @@ apk add --update ffmpeg && \ apk add --update mupdf && \ apk add --update mupdf-tools && \ rm -rf /var/cache/apk/* -# Setting up user -# - envs +# User ARG USER_UID ARG USER_NAME -# - Create user. RUN adduser --disabled-password --gecos "" --uid "$USER_UID" "$USER_NAME" - USER "$USER_NAME" WORKDIR "/app" -# Install gems -RUN gem install bundler && \ +# Gems +RUN gem install smartcloud && \ + gem install bundler && \ gem install god -# Generating entrypoint file -RUN echo -e '#!/bin/sh\n\ -gem install --no-document smartcloud\n\ -exec "$@"' >> "/home/$(whoami)/entrypoint"; chmod +x "/home/$(whoami)/entrypoint" - -# Set entrypoint -ENTRYPOINT "/home/$(whoami)/entrypoint" - -# Command to execute at container start CMD ["buildpacker", "start"]