mirror of
https://github.com/StrawberryMaster/wayback-machine-downloader.git
synced 2025-12-17 09:46:05 +00:00
Testing
This commit is contained in:
parent
caba6a665f
commit
6e2739f5a8
35
Dockerfile
35
Dockerfile
@ -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" ]
|
||||
Loading…
x
Reference in New Issue
Block a user