Skip to content

Commit 943fea0

Browse files
committed
Added Dockerfile
1 parent d648341 commit 943fea0

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

Dockerfile

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
FROM node:0.12.7
2+
MAINTAINER Danilo Bargen <[email protected]>
3+
4+
# Choose work directory
5+
WORKDIR /app/
6+
7+
# Install node packages
8+
ADD package.json /app/
9+
RUN npm install
10+
11+
# Install bower packages
12+
ADD bower.json /app/
13+
RUN npm install -g bower gulp
14+
RUN bower --allow-root --force-latest install
15+
16+
# Run gulp tasks
17+
ADD . /app
18+
RUN gulp
19+
20+
# Add config.json
21+
ADD config.json.docker /app/config.json
22+
23+
# Entry point
24+
EXPOSE 8080
25+
CMD ["node", "bin/curvytron.js"]

config.json.docker

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"port": 8080,
3+
"googleAnalyticsId": null,
4+
"inspector": {
5+
"enabled": false,
6+
"host": "localhost",
7+
"username": "curvytron",
8+
"password": "curvytron",
9+
"database": "curvytron"
10+
}
11+
}

0 commit comments

Comments
 (0)