Skip to content

Commit

Permalink
Build on the server
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed Jul 16, 2018
1 parent a155486 commit 0f85d2c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .dockerignore
@@ -0,0 +1,4 @@
*
!src
!yarn.lock
!package.json
6 changes: 6 additions & 0 deletions Dockerfile
@@ -0,0 +1,6 @@
FROM mhart/alpine-node:10
WORKDIR /usr/src
COPY yarn.lock package.json ./
RUN yarn
COPY . .
RUN yarn run repare && mv out /public
6 changes: 1 addition & 5 deletions now.json
Expand Up @@ -3,7 +3,6 @@
"alias": "leo.im",
"type": "static",
"static": {
"public": "out",
"directoryListing": false,
"headers": [
{
Expand Down Expand Up @@ -34,8 +33,5 @@
]
}
]
},
"files": [
"out"
]
}
}

0 comments on commit 0f85d2c

Please sign in to comment.