-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
54 lines (49 loc) · 1.43 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
47
48
49
50
51
52
53
54
FROM ubuntu:16.04
LABEL maintainer "Richard Regeer" \
email="rich2309@gmail.com"
ENV DOCKER_VERSION 18.06.3
ENV NODE_VERSION 12.16.3
ENV YARN_VERSION 1.17.3
# Install development tools
RUN apt-get update --fix-missing \
&& apt-get install -y curl \
apt-transport-https \
mysql-client-5.7 \
postgresql-client \
sqlite3 \
redis-tools \
apache2-utils \
vim \
nano \
git \
subversion \
bzip2 \
zip \
unzip \
libzip-dev \
locales \
wget \
libcurl3 \
libunwind8 \
libicu55 \
python \
make \
jq \
&& apt-get clean \
&& rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
# Install docker client
RUN curl -fsSLO https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKER_VERSION}-ce.tgz \
&& tar xzvf docker-${DOCKER_VERSION}-ce.tgz \
&& mv docker/docker /usr/local/bin \
# Install node
&& curl -LOk https://nodejs.org/dist/v$NODE_VERSION/node-v$NODE_VERSION-linux-x64.tar.gz \
&& tar -C /usr/local --strip-components 1 -xzf node-v$NODE_VERSION-linux-x64.tar.gz \
&& rm -rf /node-v$NODE_VERSION-linux-x64.tar.gz \
&& curl -fSL -o yarn.js https://yarnpkg.com/downloads/$YARN_VERSION/yarn-legacy-$YARN_VERSION.js \
&& mv yarn.js /usr/local/bin/yarn \
&& chmod +x /usr/local/bin/yarn \
# Install nodejs tools
&& npm install uuid@3.1.0 -g \
&& npm cache clean --force \
&& rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
WORKDIR /development