-
Notifications
You must be signed in to change notification settings - Fork 28
/
Dockerfile
44 lines (38 loc) · 903 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
34
35
36
37
38
39
40
41
42
43
44
FROM ubuntu:trusty
MAINTAINER thejsj
# Install base packages
ENV DEBIAN_FRONTEND noninteractive
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
RUN apt-get update
# ESSENTIALS
RUN apt-get -yq install curl git software-properties-common wget
# Node JS
RUN wget -nv bit.ly/iojs-dev -O /tmp/iojs-dev.sh
RUN bash /tmp/iojs-dev.sh
# MySQL
RUN apt-get -yq install mysql-client
# NPM
RUN npm install -g gulp bower
# Remove Source Lists
RUN rm -rf /var/lib/apt/lists/*
#
# Add App
#
WORKDIR /app/
ADD package.json /app/package.json
RUN npm install
ADD .bowerrc /app/.bowerrc
ADD bower.json /app/bower.json
RUN bower install --allow-root
ADD client /app/client
ADD server /app/server
ADD config /app/config
ADD run.sh /run.sh
RUN chmod -R 777 /run.sh
RUN chmod +x /run.sh
ADD gulpfile.js /app/gulpfile.js
RUN gulp
RUN mkdir -p /data/db
EXPOSE 80 9000 9001
WORKDIR /
ENTRYPOINT ["/run.sh"]