forked from os-js/OS.js
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
33 lines (26 loc) · 915 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
28
29
30
31
32
33
############################################
## Docker Image for the OS.js-v2 Project ##
## Dockerfile created by junland (Github) ##
############################################
## Pull Docker image using Ubuntu 14.04 LTS ##
FROM ubuntu:trusty
MAINTAINER junland ##You can put your own name.##
USER root
## Initial update of image ##
RUN apt-get -y update
## Install dependencies and build tools. ##
RUN apt-get install -y git
RUN apt-get install -y npm
RUN apt-get install -y nodejs-legacy
## Clone the Repo and install grunt ##
RUN git clone https://github.com/andersevenrud/OS.js-v2.git
RUN npm install -g grunt-cli
RUN cd OS.js-v2/
## Install and Compile OS.js ##
WORKDIR OS.js-v2/
RUN npm install
RUN grunt
## Start Application and Expose Port ##
## Note: you can change 'start-node-dev.sh' (Development Version) to 'start-node-dist.sh' (Production Version) ##
CMD ./bin/start-node-dev.sh
EXPOSE 8000