-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (40 loc) · 1.14 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
ARG appdir=/srv/javierc-bot
FROM ruby:2.6.0-slim
RUN set -ex \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
curl \
git \
gnupg \
gstreamer1.0-plugins-base \
gstreamer1.0-tools \
gstreamer1.0-x \
libgl1-mesa-dri \
libmsgpack-dev \
libpq-dev \
libxml2-dev \
libqt5webkit5-dev \
libcurl4-openssl-dev \
openssh-client \
pdftk \
qt5-default \
xauth \
xvfb \
r-base-core \
&& 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" > /etc/apt/sources.list.d/yarn.list \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
nodejs \
yarn \
&& rm -rf /var/lib/apt/lists/*
ARG appdir
WORKDIR $appdir
COPY Gemfile Gemfile.lock $appdir/
RUN bundle install
COPY init.R $appdir/
RUN Rscript init.R
ENV HOST=0.0.0.0
CMD ["bash"]