Skip to content

Commit

Permalink
Adds option to build in Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanprior committed Sep 23, 2017
1 parent 1d4402a commit a8b3f77
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.git*
.travis*
node_modules
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM node:8.5-alpine

RUN apk add --no-cache git

RUN mkdir -p /opt/gh-board
WORKDIR /opt/gh-board

COPY package.json .
RUN npm install

COPY ./ .

EXPOSE 8080
ENTRYPOINT [ "npm" ]
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
version: "2"
services:
dev:
build: ./
image: gh-board
command: start
ports:
- 8080:8080
volumes:
- ./src:/opt/gh-board/src
- ./style:/opt/gh-board/style
- ./test:/opt/gh-board/test

0 comments on commit a8b3f77

Please sign in to comment.