Sha256: fb5a46a0cbe7ea691f3fc95f4f9f6ebd8f17723fbfcd4c0a02e55910c650baf3

Contents?: true

Size: 1.2 KB

Versions: 2

Compression:

Stored size: 1.2 KB

Contents

FROM outstand/fixuid as fixuid

FROM ruby:2.7.3-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

COPY --from=fixuid /usr/local/bin/fixuid /usr/local/bin/fixuid
RUN chmod 4755 /usr/local/bin/fixuid && \
      USER=metaractor && \
      GROUP=metaractor && \
      mkdir -p /etc/fixuid && \
      printf "user: $USER\ngroup: $GROUP\n" > /etc/fixuid/config.yml

ENV BUNDLER_VERSION 2.2.16
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

2 entries across 2 versions & 1 rubygems

Version Path
metaractor-3.1.1 Dockerfile
metaractor-3.1.0 Dockerfile