Skip to content

Instantly share code, notes, and snippets.

@veverkap
Created February 20, 2020 23:15
Show Gist options
  • Save veverkap/0efc63fe0eba5cdc727f0ace8018c7a1 to your computer and use it in GitHub Desktop.
Save veverkap/0efc63fe0eba5cdc727f0ace8018c7a1 to your computer and use it in GitHub Desktop.
FROM ruby:2.6
RUN apt install ffmpeg
# throw errors if Gemfile has been modified since Gemfile.lock
RUN bundle config --global frozen 1
WORKDIR /usr/src/app
COPY Gemfile Gemfile.lock ./
RUN gem install bundler
RUN bundle install
COPY main.rb config.ru downloader.rb ./
CMD ["puma"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment