-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
34 lines (26 loc) · 914 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
FROM ubuntu:18.04
LABEL maintainer="[email protected]"
RUN apt-get update && apt-get -y install build-essential zlib1g-dev libssl-dev \
libreadline6-dev libyaml-dev git \
libcurl4-openssl-dev libpq-dev libmysqlclient-dev libxslt-dev \
libsqlite3-dev libmagickwand-dev imagemagick \
python curl
# Install node
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt install nodejs
RUN npm install -g yarn
ENV RUBY_DOWNLOAD_SHA256 3586861cb2df56970287f0fd83f274bd92058872d830d15570b36def7f1a92ac
ADD https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.3.tar.gz /tmp/
# Install ruby
RUN \
cd /tmp && \
echo "$RUBY_DOWNLOAD_SHA256 *ruby-3.0.3.tar.gz" | sha256sum -c - && \
tar -xzf ruby-3.0.3.tar.gz && \
cd ruby-3.0.3 && \
./configure --enable-shared && \
make && \
make install && \
cd .. && \
rm -rf ruby-3.0.3 && \
rm -f ruby-3.0.3.tar.gz
RUN gem install bundler