Sha256: 9053f2d13e313eaf603f0b19041ea63ec2f90e940f42bd5222005a08112304a5
Contents?: true
Size: 1.36 KB
Versions: 1
Compression:
Stored size: 1.36 KB
Contents
ARG DEBIAN_VERSION=bookworm ARG RUBY_VERSION=3.3.6 FROM docker.io/ruby:$RUBY_VERSION-$DEBIAN_VERSION AS build-env # Setting env up ARG APP_ROOT=/app ARG JOBS=8 ENV LANG C.UTF-8 ENV BUNDLE_SILENCE_ROOT_WARNING=1 #Install dependencies needed for compilation RUN apt-get update && apt-get install -qy build-essential curl git WORKDIR $APP_ROOT RUN mkdir -p lib/dapr COPY lib/dapr/version.rb lib/dapr/version.rb COPY Gemfile dapr.gemspec . RUN bundle config set build.nokogiri --use-system-libraries && \ bundle config set without 'test development assets' && \ bundle install --jobs 8 && \ mkdir -p /src && \ cd /src && \ curl -L https://github.com/leahneukirchen/snooze/archive/refs/tags/v0.5.tar.gz > snooze.tar.gz && \ tar xvf snooze.tar.gz && \ cd snooze-0.5 && \ make && \ install -m 0755 snooze /bin/snooze && \ cd / && \ rm -rf /src # Remove folders not needed in resulting image RUN rm -rf node_modules tmp/cache app/assets vendor/assets spec ############### Build step done ############### ARG DEBIAN_VERSION=bookworm ARG RUBY_VERSION=3.3.6 FROM docker.io/ruby:$RUBY_VERSION-$DEBIAN_VERSION ARG APP_ROOT=/app WORKDIR $APP_ROOT # install packages RUN apt-get update && apt-get install -qy curl bash runit COPY --from=build-env /usr/local/bundle/ /usr/local/bundle/ COPY --from=build-env /bin/snooze /bin/snooze CMD ['/bin/bash']
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dapr-0.5.0 | oci/Containerfile |