-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (38 loc) · 1.61 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
FROM ruby:2.7.7
ENV LANG C.UTF-8
ENV TZ Asia/Tokyo
ENV BUNDLER_VERSION 2.3.25
WORKDIR /myapp
# apt-get利用リポジトリを日本サーバーに変更(インストール時間を短くする)
RUN sed -i 's@archive.ubuntu.com@ftp.jaist.ac.jp/pub/Linux@g' /etc/apt/sources.list
RUN set -ex && \
apt-get update -qq && \
apt-get install -y --no-install-recommends sudo && \
: "Install node.js" && \
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - && \
apt-get update -qq && \
apt-get install -y --no-install-recommends nodejs && \
: "Install yarn" && \
wget -q https://dl.yarnpkg.com/debian/pubkey.gpg && \
sudo apt-key add pubkey.gpg && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list && \
apt-get update -qq && \
apt-get install -y --no-install-recommends yarn && \
apt-get install -y --no-install-recommends vim && \
apt-get install -y --no-install-recommends wget &&\
apt-get install -y --no-install-recommends zip unzip &&\
apt-get install -y --no-install-recommends postgresql-client &&\
apt-get install -y --no-install-recommends libvips &&\
apt-get install -y --no-install-recommends graphviz &&\
: "Cleaning..." && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
: "Install rails6.X latest version" && \
gem install rails --version="~>6.0.0"
# COPY Gemfile /myapp
# COPY Gemfile.lock /myapp
# COPY package.json /myapp
# COPY yarn.lock /myapp
# RUN yarn install --check-files
# RUN gem install bundler -v $BUNDLER_VERSION
# RUN bundle _$BUNDLER_VERSION\_ install -j4