-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
27 lines (23 loc) · 880 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
FROM halplatform/hal-build-environments:debian10-buildpack
ENV NODE_VERSION "12.12.0"
ENV YARN_VERSION "1.21.1"
ENV NODE_DEB_URL "https://deb.nodesource.com/node_12.x/pool/main/n/nodejs/nodejs_${NODE_VERSION}-1nodesource1_amd64.deb"
RUN apt-get update && apt-get install -y apt-transport-https \
&& \
echo ; echo "Downloading ${NODE_DEB_URL}" ; echo \
&& \
curl -sLo nodejs.deb "${NODE_DEB_URL}" \
&& \
apt-get install -y ./nodejs.deb \
&& \
rm nodejs.deb && rm -rf /var/lib/apt/lists/*
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee "/etc/apt/sources.list.d/yarn.list" \
&& \
curl -sS "https://dl.yarnpkg.com/debian/pubkey.gpg" | apt-key add - \
&& \
apt-get update \
&& \
apt-get install -y \
"yarn=${YARN_VERSION}-1" \
&& \
rm -rf /var/lib/apt/lists/*