Skip to content

Commit 9b1ce6f

Browse files
authored
build(docker): Adding Docker configuration to automatic deploy on Now (#8)
* build(docker): Adding Docker configuration * chore: Removing yarn.lock from .gitignore
1 parent b3bfa18 commit 9b1ce6f

File tree

6 files changed

+12103
-2
lines changed

6 files changed

+12103
-2
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
!package.json
2+
!yarn.lock

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ dist/
33
node_modules/
44
storybook-static/
55
package-lock.json
6-
yarn.lock
76
*.log
87
.eslintcache

Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM mhart/alpine-node:10
2+
WORKDIR /usr/src
3+
COPY package.json yarn.lock /usr/src/
4+
RUN yarn install
5+
COPY . .
6+
RUN yarn storybook:build
7+
RUN mv ./storybook-static /public

now.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"type": "static",
3+
"public": true,
24
"alias": "react-semantic-ui-datepickers",
35
"name": "react-semantic-ui-datepickers"
46
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"semantic-release": "^15.8.1",
5151
"semantic-ui-css": "^2.3.1",
5252
"semantic-ui-react": "^0.79.1",
53-
"serve": "^9.4.0",
53+
"serve": "^10.0.0",
5454
"travis-deploy-once": "^5.0.1"
5555
},
5656
"peerDependencies": {

0 commit comments

Comments
 (0)