Skip to content

Commit

Permalink
Add docker
Browse files Browse the repository at this point in the history
  • Loading branch information
nanoparsec committed Aug 8, 2017
1 parent 7f73f1c commit 7464f4f
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 5 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM node:8

WORKDIR /app

COPY package.json .
RUN npm install
COPY . .

EXPOSE 3000

CMD [ "npm", "start" ]
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
# innoQ Styleguide and Component Library

## Installation
## Without Docker

npm install
Install:

## Start
npm install

This starts a local development server complete with asset pipeline:

npm start

## Export static site

Export a static site to `./dist/site`

npm run site

## With Docker & Docker-Compose

docker-compose up

## Deployment

Everything in master gets deployed automatically to
Expand Down
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: '3'
services:
web:
build: .
ports:
- '3000:3000'
volumes:
- .:/app
- node_modules:/app/node_modules
volumes:
node_modules: {}

0 comments on commit 7464f4f

Please sign in to comment.