forked from abner/docker-ionic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (20 loc) · 779 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 node:10.16.3-slim
LABEL maintainer="adelmo<[email protected]>"
ENV TZ=America/Bahia \
IONIC_VERSION=4.5.0 \
CORDOVA_VERSION=9.0.0 \
NODE_SASS=4.9.0
RUN apt-get update && \
apt-get install -y apt-utils bzip2 git wget curl unzip python gcc g++ make
RUN npm i -g cordova@"$CORDOVA_VERSION" --unsafe-perm \
npm i -g ionic@"$IONIC_VERSION" --unsafe-perm \
npm i -g node-sass@"$NODE_SASS" --unsafe-perm \
npm cache clear --force
RUN echo $TZ > /etc/timezone && \
rm /etc/localtime && \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
dpkg-reconfigure -f noninteractive tzdata
RUN apt-get update && \
apt-get install -y wget
RUN echo 'strict-ssl=false' > ~/.npmrc
RUN git config --global url."https://".insteadOf git://