Dockerfile 356 B

123456789101112131415
  1. FROM ruby:2.6.3-alpine
  2. RUN apk update && \
  3. apk add --no-cache build-base git postgresql-dev imagemagick
  4. RUN apk add --no-cache imagemagick-dev=6.9.6.8-r1 --repository http://dl-3.alpinelinux.org/alpine/v3.5/main/
  5. RUN mkdir /app
  6. WORKDIR /app
  7. COPY Gemfile Gemfile.lock /app/
  8. RUN bundle install
  9. COPY . /app
  10. CMD ["bundle", "exec", "ruby", "bot.rb"]