Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
webwurst committed Jul 9, 2016
1 parent fe207e5 commit 662698c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM node:6.2

ARG JSON_SERVER_VERSION=0.8.15
RUN npm install --global json-server@$JSON_SERVER_VERSION

# hack to increase size limit
RUN sed -i -e "s/{limit: '10mb'}/{limit: '100mb'}/" \
/usr/local/lib/node_modules/json-server/src/server/router/index.js

COPY json-server.json /etc/json-server/

VOLUME /etc/json-server
VOLUME /var/lib/json-server

CMD ["json-server", "--config", "/etc/json-server/json-server.json", "/var/lib/json-server/db.json"]
EXPOSE 3000
4 changes: 4 additions & 0 deletions json-server.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"port": 3000,
"watch": true
}

0 comments on commit 662698c

Please sign in to comment.