forked from os-js/OS.js
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
31 lines (24 loc) · 858 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
############################################
## Docker Image for the OS.js 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 -y install git npm nodejs-legacy
## Clone the Repo and install grunt ##
RUN git clone https://github.com/os-js/OS.js.git
RUN npm install -g grunt-cli supervisor
RUN cd OS.js/
## Install and Compile OS.js ##
WORKDIR OS.js/
RUN npm install --production
RUN grunt
## Start Application and Expose Port ##
## Note: you can change 'start-dev.sh' (Development Version) to 'start-dist.sh' (Production Version) ##
CMD ./bin/start-dev.sh
EXPOSE 8000