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

Version Path
smartcloud-0.1.0 lib/smartcloud/engine/Dockerfile
smartcloud-0.1.0.rc4 lib/smartcloud/engine/Dockerfile
smartcloud-0.1.0.rc3 lib/smartcloud/engine/Dockerfile
smartcloud-0.1.0.rc2 lib/smartcloud/engine/Dockerfile
smartcloud-0.1.0.rc1 lib/smartcloud/engine/Dockerfile
smartcloud-0.1.0.beta5 lib/smartcloud/engine/Dockerfile
smartcloud-0.1.0.beta4 lib/smartcloud/engine/Dockerfile
smartcloud-0.1.0.beta3 lib/smartcloud/engine/Dockerfile
smartcloud-0.1.0.beta2 lib/smartcloud/engine/Dockerfile
smartcloud-0.1.0.beta1 lib/smartcloud/engine/Dockerfile
smartcloud-0.0.210 lib/smartcloud/engine/Dockerfile
smartcloud-0.0.209 lib/smartcloud/engine/Dockerfile
smartcloud-0.0.208 lib/smartcloud/engine/Dockerfile
smartcloud-0.0.207 lib/smartcloud/engine/Dockerfile
smartcloud-0.0.206 lib/smartcloud/engine/Dockerfile
smartcloud-0.0.205 lib/smartcloud/engine/Dockerfile
smartcloud-0.0.204 lib/smartcloud/engine/Dockerfile
smartcloud-0.0.203 lib/smartcloud/engine/Dockerfile
smartcloud-0.0.202 lib/smartcloud/engine/Dockerfile
smartcloud-0.0.201 lib/smartcloud/engine/Dockerfile