From c26ace97b3eb7fa51464daa19524a442129f4304 Mon Sep 17 00:00:00 2001 From: Felipe <41008398+StrawberryMaster@users.noreply.github.com> Date: Wed, 26 Jun 2024 16:51:13 +0000 Subject: [PATCH] Fix Dockerfile to correctly install dependencies taken from @matthid/wayback-machine-downloader @ https://github.com/matthid/wayback-machine-downloader/commit/d75de94ac6fcf1f8a887eac3b9eebb9b8794ff3d --- Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5d32b8c..4c56e58 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,8 @@ FROM ruby:2.3 +USER root +WORKDIR /build COPY . /build -RUN cd build && \ - bundle install -ENTRYPOINT [ "/usr/local/bundle/bin/wayback_machine_downloader" ] + +RUN cd /build && \ bundle install --gemfile=/build/Gemfile +# ENTRYPOINT [ "/usr/local/bundle/bin/wayback_machine_downloader" ] +ENTRYPOINT [ "bundle", "exec", "--gemfile=/build/Gemfile", "wayback_machine_downloader" ] \ No newline at end of file