Fix Dockerfile to correctly install dependencies

taken from @matthid/wayback-machine-downloader @ d75de94ac6
This commit is contained in:
Felipe 2024-06-26 16:51:13 +00:00
parent 653b94ba12
commit c26ace97b3

View File

@ -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" ]