Skip to content

Commit

Permalink
Feature: Docker (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagomapmarques authored Oct 28, 2017
1 parent 8cd0920 commit aa53ab4
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 2 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:8

WORKDIR /usr/src/app
COPY package*.json ./
RUN npm i

COPY . ./
RUN npm run build:prod

EXPOSE 80

CMD npm run serve:prod
6 changes: 6 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: '3'
services:
web:
build: .
ports:
- "8000:80"
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "js-boilerplate",
"version": "0.0.3",
"version": "0.1.0",
"repository": "https://github.com/tiagomapmarques/js-boilerplate",
"license": "MIT",
"engines": {
Expand Down

0 comments on commit aa53ab4

Please sign in to comment.