-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
34 lines (24 loc) · 927 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM ruby:2.7
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && \
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
apt-get update && apt-get install -y yarn nodejs unzip
RUN apt-get update && apt-get install -y ffmpeg python3-pip
RUN pip install --upgrade youtube_dl
RUN apt-get install shared-mime-info
WORKDIR /app
COPY Gemfile* ./
RUN bundle install --deployment --without test development --jobs=4
COPY . ./
ENV DATABASE_URL=sqlite3:///db/production.sqlite3
ENV RAILS_ENV=production
RUN bundle exec rake webpacker:yarn_install
RUN bundle exec rake assets:precompile
ENV RAILS_LOG_TO_STDOUT=true
ENV MAX_EPISODES_TO_STORE=50
VOLUME /db
VOLUME /uploads
VOLUME /app/tmp/youtube
COPY docker-entrypoint.sh /usr/local/bin/
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["web"]