-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathDockerfile
More file actions
69 lines (57 loc) · 1.94 KB
/
Dockerfile
File metadata and controls
69 lines (57 loc) · 1.94 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# CentOS
#
# VERSION 0.0.1
FROM centos:centos7.4.1708
MAINTAINER Drecom Technical Development Department "pr_itn@drecom.co.jp"
#RUN rpm -ivh http://ftp.iij.ad.jp/pub/linux/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm
RUN yum install -y \
epel-release \
openssl-devel \
readline-devel\
zlib-devel \
wget \
curl \
git \
dtach \
vim \
hash-slinger \
bzip2 \
tar \
ImageMagick \
ImageMagick-devel \
libffi-devel \
mysql \
mysql-devel \
libxslt-devel \
redis \
python \
&& yum groupinstall "Development Tools" -y \
&& yum clean all
# node.js LTS install
RUN curl --silent --location https://rpm.nodesource.com/setup_6.x | bash - \
&& yum -y install nodejs \
&& npm -g up
# yarn install
RUN curl -o- -L https://yarnpkg.com/install.sh | bash
# pip install
RUN wget https://bootstrap.pypa.io/get-pip.py \
&& python get-pip.py
# s3cmd install
RUN pip install s3cmd
# phantomjs install
ENV PHANTOMJS_VERSION 2.1.1
RUN wget -U "wget" --wait=5 https://github.com/Medium/phantomjs/releases/download/v${PHANTOMJS_VERSION}/phantomjs-${PHANTOMJS_VERSION}-linux-x86_64.tar.bz2 \
&& tar xf phantomjs-${PHANTOMJS_VERSION}-linux-x86_64.tar.bz2 \
&& mv phantomjs-${PHANTOMJS_VERSION}-linux-x86_64/bin/phantomjs /usr/bin/phantomjs \
&& rm -rf phantomjs-${PHANTOMJS_VERSION}-linux-x86_64 \
&& rm phantomjs-${PHANTOMJS_VERSION}-linux-x86_64.tar.bz2
# dockerize install
ENV DOCKERIZE_VERSION v0.6.0
RUN wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
&& rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
# Change default locale to ja-JP.UTF-8
ENV LANG=ja_JP.UTF-8
RUN localedef -f UTF-8 -i ja_JP ja_JP.UTF-8
RUN \cp -p /usr/share/zoneinfo/Japan /etc/localtime \
&& echo 'ZONE="Asia/Tokyo"' > /etc/sysconfig/clock