diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..d27aec1 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,4 @@ +* +!src +!yarn.lock +!package.json diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b70b7a1 --- /dev/null +++ b/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 diff --git a/now.json b/now.json index ba9b502..815bf51 100644 --- a/now.json +++ b/now.json @@ -3,7 +3,6 @@ "alias": "leo.im", "type": "static", "static": { - "public": "out", "directoryListing": false, "headers": [ { @@ -34,8 +33,5 @@ ] } ] - }, - "files": [ - "out" - ] + } }