Sha256: 466b288cfa164ac6893b398421d7a6aad9e7b4578af7ef7dbeb11da67e535282
Contents?: true
Size: 835 Bytes
Versions: 20
Compression:
Stored size: 835 Bytes
Contents
FROM ruby:2.6.4-alpine3.10 MAINTAINER Timeboard <hello@timeboard.me> RUN apk add --update docker && \ rm -rf /var/cache/apk/* # Setting up group and user # - envs ARG USER_NAME ARG USER_UID ARG DOCKER_GID # - fix to change gid of 999 to 99 so that addgroup is free to create a group with 999 as gid # - Create group & user. Then add user to group RUN sed -i "s/999/99/" /etc/group && \ adduser --disabled-password --gecos "" --uid $USER_UID $USER_NAME && \ addgroup --gid $DOCKER_GID "docker" && adduser $USER_NAME docker USER "$USER_NAME" WORKDIR "/home/$USER_NAME/.smartcloud" # Generating entrypoint file RUN echo -e '#!/bin/sh\n\ gem install --no-document smartcloud\n\ exec smartcloud "$@"' >> "/home/$(whoami)/entrypoint"; chmod +x "/home/$(whoami)/entrypoint" # Set entrypoint ENTRYPOINT "/home/$(whoami)/entrypoint"
Version data entries
20 entries across 20 versions & 1 rubygems