This commit is contained in:
Felipe 2025-05-18 18:00:10 +00:00 committed by GitHub
parent caba6a665f
commit 6e2739f5a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,34 +1,15 @@
FROM ruby:3.4.4-alpine AS builder
USER root
RUN apk add --no-cache \
build-base \
ruby-dev \
libffi-dev \
yaml-dev
WORKDIR /build
COPY Gemfile Gemfile.lock ./
COPY *.gemspec ./
RUN gem update --system && \
bundle config set jobs $(nproc) && \
bundle install --jobs=$(nproc) --retry=3 --without development test
COPY . .
FROM ruby:3.4.3-alpine
USER root
WORKDIR /build
RUN apk add --no-cache \
libffi \
yaml
COPY Gemfile /build/
COPY *.gemspec /build/
WORKDIR /app
RUN gem update \
&& bundle config set jobs $(nproc) \
&& bundle install
COPY --from=builder /usr/local/bundle /usr/local/bundle
COPY --from=builder /build /app
COPY . /build
WORKDIR /
ENTRYPOINT [ "/app/bin/wayback_machine_downloader" ]
ENTRYPOINT [ "/build/bin/wayback_machine_downloader" ]