lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile in smartcloud-0.0.205 vs lib/smartcloud/grids/grid-runner/buildpacks/rails/Dockerfile in smartcloud-0.0.206
- old
+ new
@@ -1,8 +1,13 @@
FROM ruby:2.6.4-alpine3.10
LABEL maintainer="Timeboard <hello@timeboard.me>"
+# User
+ARG USER_UID
+ARG USER_NAME
+RUN adduser --disabled-password --gecos "" --uid "$USER_UID" "$USER_NAME"
+
# Ruby on Rails Essentials
RUN apk add --update build-base && \
apk add --update tzdata && \
apk add --update nodejs && \
apk add --update yarn && \
@@ -11,13 +16,10 @@
apk add --update ffmpeg && \
apk add --update mupdf && \
apk add --update mupdf-tools && \
rm -rf /var/cache/apk/*
-# User
-ARG USER_UID
-ARG USER_NAME
-RUN adduser --disabled-password --gecos "" --uid "$USER_UID" "$USER_NAME"
+# Privileges
USER "$USER_NAME"
WORKDIR "/app"
# Gems
RUN gem install smartcloud && \