Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions phonegap/6.2.7/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM webratio/nodejs-with-android-sdk:4.4.1

# Installs PhoneGap
# Forces a create and build in order to preload libraries
ENV PHONEGAP_VERSION 6.2.7
RUN apt-get update -y && \
apt-get install -y git-core && \
rm -rf /var/lib/apt/lists/* && \
apt-get autoremove -y && \
apt-get clean
RUN npm install -g npm && \
npm install -g phonegap@${PHONEGAP_VERSION} && \
npm install -g xmldom && \
npm install -g xpath && \
cd /tmp && \
phonegap create fakeapp && \
cd /tmp/fakeapp && \
phonegap build android && \
cd && \
rm -rf /tmp/fakeapp

VOLUME ["/data"]
WORKDIR /data

EXPOSE 3000
40 changes: 40 additions & 0 deletions phonegap/6.2.7/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
## PhoneGap Dockerfile

This repository contains **Dockerfile** of [PhoneGap](http://phonegap.com/) for [Docker](https://www.docker.com/)'s [build](https://registry.hub.docker.com/u/webratio/phonegap/) published to the public [Docker Hub](https://hub.docker.com/).

### Installation

1. Install [Docker](https://www.docker.com/).

2. Pull the image
* `docker pull webratio/phonegap`
* `docker pull webratio/phonegap:3.5.0`
* `docker pull webratio/phonegap:3.5.0-0.21.18`
* `docker pull webratio/phonegap:3.6.0`
* `docker pull webratio/phonegap:3.6.0-0.21.19`
* `docker pull webratio/phonegap:3.6.3`
* `docker pull webratio/phonegap:3.6.3-0.22.7`
* `docker pull webratio/phonegap:4.0.0`
* `docker pull webratio/phonegap:4.0.0-0.22.7`
* `docker pull webratio/phonegap:4.1.2`
* `docker pull webratio/phonegap:4.1.2-0.22.12`
* `docker pull webratio/phonegap:4.2.0`
* `docker pull webratio/phonegap:4.2.0-0.24.2`
* `docker pull webratio/phonegap:6.0.3`
* `docker pull webratio/phonegap:6.1.0`
* `docker pull webratio/phonegap:6.2.0`
* `docker pull webratio/phonegap:6.2.2`

### Usage

#### Run `phonegap create`

docker run -v <application-parent-dir>:/data webratio/phonegap phonegap create <application-name>

#### Run `phonegap serve`

docker run -d -p <port>:3000 -v <application-dir>:/data webratio/phonegap phonegap serve -p 3000

#### Run `phonegap build android`

docker run -v <application-dir>:/data webratio/phonegap phonegap build android
25 changes: 25 additions & 0 deletions phonegap/6.3.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM webratio/nodejs-with-android-sdk:4.4.1

# Installs PhoneGap
# Forces a create and build in order to preload libraries
ENV PHONEGAP_VERSION 6.3.0
RUN apt-get update -y && \
apt-get install -y git-core && \
rm -rf /var/lib/apt/lists/* && \
apt-get autoremove -y && \
apt-get clean
RUN npm install -g npm && \
npm install -g phonegap@${PHONEGAP_VERSION} && \
npm install -g xmldom && \
npm install -g xpath && \
cd /tmp && \
phonegap create fakeapp && \
cd /tmp/fakeapp && \
phonegap build android && \
cd && \
rm -rf /tmp/fakeapp

VOLUME ["/data"]
WORKDIR /data

EXPOSE 3000
40 changes: 40 additions & 0 deletions phonegap/6.3.0/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
## PhoneGap Dockerfile

This repository contains **Dockerfile** of [PhoneGap](http://phonegap.com/) for [Docker](https://www.docker.com/)'s [build](https://registry.hub.docker.com/u/webratio/phonegap/) published to the public [Docker Hub](https://hub.docker.com/).

### Installation

1. Install [Docker](https://www.docker.com/).

2. Pull the image
* `docker pull webratio/phonegap`
* `docker pull webratio/phonegap:3.5.0`
* `docker pull webratio/phonegap:3.5.0-0.21.18`
* `docker pull webratio/phonegap:3.6.0`
* `docker pull webratio/phonegap:3.6.0-0.21.19`
* `docker pull webratio/phonegap:3.6.3`
* `docker pull webratio/phonegap:3.6.3-0.22.7`
* `docker pull webratio/phonegap:4.0.0`
* `docker pull webratio/phonegap:4.0.0-0.22.7`
* `docker pull webratio/phonegap:4.1.2`
* `docker pull webratio/phonegap:4.1.2-0.22.12`
* `docker pull webratio/phonegap:4.2.0`
* `docker pull webratio/phonegap:4.2.0-0.24.2`
* `docker pull webratio/phonegap:6.0.3`
* `docker pull webratio/phonegap:6.1.0`
* `docker pull webratio/phonegap:6.2.0`
* `docker pull webratio/phonegap:6.2.2`

### Usage

#### Run `phonegap create`

docker run -v <application-parent-dir>:/data webratio/phonegap phonegap create <application-name>

#### Run `phonegap serve`

docker run -d -p <port>:3000 -v <application-dir>:/data webratio/phonegap phonegap serve -p 3000

#### Run `phonegap build android`

docker run -v <application-dir>:/data webratio/phonegap phonegap build android