Skip to content

Commit

Permalink
Docker image build order improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
L-Eugene committed Mar 22, 2024
1 parent 84e9e33 commit 061dbb1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ 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"]

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 . .

0 comments on commit 061dbb1

Please sign in to comment.