Skip to content

Commit 6e2739f

Browse files
Testing
1 parent caba6a6 commit 6e2739f

File tree

1 file changed

+8
-27
lines changed

1 file changed

+8
-27
lines changed

Dockerfile

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,15 @@
1-
FROM ruby:3.4.4-alpine AS builder
2-
USER root
3-
4-
RUN apk add --no-cache \
5-
build-base \
6-
ruby-dev \
7-
libffi-dev \
8-
yaml-dev
9-
10-
WORKDIR /build
11-
12-
COPY Gemfile Gemfile.lock ./
13-
COPY *.gemspec ./
14-
15-
RUN gem update --system && \
16-
bundle config set jobs $(nproc) && \
17-
bundle install --jobs=$(nproc) --retry=3 --without development test
18-
19-
COPY . .
20-
211
FROM ruby:3.4.3-alpine
222
USER root
3+
WORKDIR /build
234

24-
RUN apk add --no-cache \
25-
libffi \
26-
yaml
5+
COPY Gemfile /build/
6+
COPY *.gemspec /build/
277

28-
WORKDIR /app
8+
RUN gem update \
9+
&& bundle config set jobs $(nproc) \
10+
&& bundle install
2911

30-
COPY --from=builder /usr/local/bundle /usr/local/bundle
31-
COPY --from=builder /build /app
12+
COPY . /build
3213

3314
WORKDIR /
34-
ENTRYPOINT [ "/app/bin/wayback_machine_downloader" ]
15+
ENTRYPOINT [ "/build/bin/wayback_machine_downloader" ]

0 commit comments

Comments
 (0)