Sha256: 557e5ddcec530cb29ff1cdb6489d3234f80204ac4f991492d7fa56bff715a277

Contents?: true

Size: 936 Bytes

Versions: 5

Compression:

Stored size: 936 Bytes

Contents

FROM ruby:2.6.5-alpine
LABEL maintainer="Ryan Schlesinger <ryan@outstand.com>"

RUN addgroup -g 1000 -S metaractor && \
    adduser -u 1000 -S -s /bin/ash -G metaractor metaractor && \
    apk add --no-cache \
      ca-certificates \
      tini \
      su-exec \
      build-base \
      git \
      openssh

ENV BUNDLER_VERSION 2.1.4
RUN gem install bundler -v ${BUNDLER_VERSION} -i /usr/local/lib/ruby/gems/$(ls /usr/local/lib/ruby/gems) --force

WORKDIR /metaractor
RUN chown -R metaractor:metaractor /metaractor
USER metaractor

COPY --chown=metaractor:metaractor Gemfile metaractor.gemspec /metaractor/
COPY --chown=metaractor:metaractor lib/metaractor/version.rb /metaractor/lib/metaractor/
RUN git config --global push.default simple
COPY --chown=metaractor:metaractor . /metaractor/

USER root
COPY docker-entrypoint.sh /docker-entrypoint.sh

ENTRYPOINT ["/sbin/tini", "-g", "--", "/docker-entrypoint.sh"]
CMD ["rspec", "spec"]

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
metaractor-3.0.1 Dockerfile
metaractor-3.0.0 Dockerfile
metaractor-2.1.1 Dockerfile
metaractor-2.1.0 Dockerfile
metaractor-2.0.0 Dockerfile