Skip to content

Commit

Permalink
Add now.json
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl J. Overå committed Aug 8, 2018
1 parent 350bf13 commit d16b978
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*
!src
!static
!yarn.lock
!package.json
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM mhart/alpine-node

# Set the default working directory
WORKDIR /usr/src

# Install dependencies
COPY package.json yarn.lock ./
RUN yarn

# Copy the relevant files to the working directory
COPY . .

# Build and export the app
RUN yarn build && mv public /public
5 changes: 5 additions & 0 deletions now.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "karl.run",
"type": "static",
"public": false
}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"url": "git+https://github.com/karl-run/karl.run.git"
},
"scripts": {
"dev": "gatsby develop",
"lint": "./node_modules/.bin/eslint --ext .js,.jsx --ignore-pattern public .",
"test": "echo \"Error: no test specified\" && exit 1",
"develop": "gatsby develop",
Expand Down

0 comments on commit d16b978

Please sign in to comment.