Sha256: 22eb55f1cd4fcb57c1f2b5245006b85e16838b6a731c13399b97fa11b9317197

Contents?: true

Size: 709 Bytes

Versions: 1

Compression:

Stored size: 709 Bytes

Contents

ARG RUBY_VERSION=2.6.6
FROM ruby:${RUBY_VERSION}-alpine

LABEL maintainer="Darkbit <info@darkbit.io>"

ARG USER=recon
ARG GEM=aws_recon
ARG VERSION=0.2.10
ARG BUNDLER_VERSION=2.1.4

# Install new Bundler version
RUN rm /usr/local/lib/ruby/gems/*/specifications/default/bundler-*.gemspec && \
    gem uninstall bundler && \
    gem install bundler -v ${BUNDLER_VERSION}

# Install gem
RUN gem install ${GEM} -v ${VERSION}

# Create non-root user
RUN addgroup -S ${USER} && \
    adduser -S ${USER} \
    -G ${USER} \
    -s /bin/ash \
    -h /${USER}

# Copy binstub
COPY binstub/${GEM} /usr/local/bundle/bin/
RUN chmod +x /usr/local/bundle/bin/${GEM}

# Switch user
USER ${USER}
WORKDIR /${USER}

CMD ["ash"]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aws_recon-0.2.11 Dockerfile