From 061dbb1b644feee4e1acca0d3b81cfd9e6cf66f2 Mon Sep 17 00:00:00 2001 From: Eugene Lapeko Date: Fri, 22 Mar 2024 10:30:21 +0200 Subject: [PATCH] Docker image build order improvement --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 55db829..ad94928 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,9 @@ FROM ruby:3.2 # throw errors if Gemfile has been modified since Gemfile.lock RUN bundle config --global frozen 1 +# Install yt-dlp +RUN apt-get update && apt-get install -y yt-dlp + WORKDIR /usr/src/app CMD ["ruby", "run_bot.rb"] @@ -10,7 +13,4 @@ CMD ["ruby", "run_bot.rb"] COPY Gemfile Gemfile.lock ./ RUN bundle config set --local without 'test' && bundle install -# Install yt-dlp -RUN apt-get update && apt-get install -y yt-dlp - COPY . . \ No newline at end of file