-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (24 loc) · 803 Bytes
/
Copy pathDockerfile
File metadata and controls
31 lines (24 loc) · 803 Bytes
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
FROM globdev/android
ENV DEBIAN_FRONTEND=noninteractive \
DBUS_SESSION_BUS_ADDRESS=/dev/nul
ENV IONIC_VERSION 3.13.2
ENV CORDOVA_VERSION 7.0.1
# Install basics
RUN apt-get update \
&& apt-get install -y git wget curl unzip ruby ruby-dev
# Install Node.js
RUN apt-get update \
&& curl -sL https://deb.nodesource.com/setup_6.x | bash - \
&& apt-get update \
&& apt-get install -y nodejs
# Install Ionic and Cordova
RUN npm i -g --unsafe-perm ionic@${IONIC_VERSION} cordova@${CORDOVA_VERSION} \
&& ionic --no-interactive config set -g daemon.updates false \
&& cordova telemetry off \
&& npm cache clear --force
# Clean up
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& apt-get autoremove -y \
&& apt-get clean
EXPOSE 8100 35729
CMD ["ionic", "serve"]