Skip to content
This repository has been archived by the owner on Sep 25, 2019. It is now read-only.

Commit

Permalink
preparing for docker containers
Browse files Browse the repository at this point in the history
- For Issue #118
  • Loading branch information
VikramTiwari committed Sep 14, 2017
1 parent a2f1bcb commit d97de94
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
bower_components
node_modules
.bower-cache
.bower-registry
.bower-tmp
.vscode
.git
.gitignore
LICENSE
VERSION
README.md
docs
23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM node:8
MAINTAINER Vikram Tiwari [email protected]

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

RUN yarn global add bower grunt-cli

RUN apt-get install libfontconfig

COPY ./package.json /usr/src/app/

RUN chown -R node:node /usr/src/app
USER node
RUN touch /home/node/.mean
RUN yarn

COPY . /usr/src/app/
ENV PORT 3000
ENV NODE_ENV production
EXPOSE 3000

CMD ["yarn", "start"]

0 comments on commit d97de94

Please sign in to comment.