mirror of https://github.com/sgoudham/carbon.git
Use Now 2.0 for building and deployment (#611)
parent
18eae4acfc
commit
5f369876d7
@ -0,0 +1,8 @@
|
|||||||
|
.github
|
||||||
|
LICENSE
|
||||||
|
README.md
|
||||||
|
bin
|
||||||
|
node_modules
|
||||||
|
cypress
|
||||||
|
cypress.json
|
||||||
|
docs
|
@ -1,13 +0,0 @@
|
|||||||
# Source: https://github.com/zeit/now-static-build-starter/blob/master/Dockerfile
|
|
||||||
FROM mhart/alpine-node:10
|
|
||||||
# We store all our files in /usr/src to perform the build
|
|
||||||
WORKDIR /usr/src
|
|
||||||
# We first add only the files required for installing deps
|
|
||||||
# If package.json or yarn.lock don't change, no need to re-install later
|
|
||||||
COPY package.json yarn.lock ./
|
|
||||||
# We install our deps
|
|
||||||
RUN yarn
|
|
||||||
# We copy all source files
|
|
||||||
COPY . .
|
|
||||||
# We run the build and expose as /public
|
|
||||||
RUN yarn build && yarn export -o /public
|
|
Loading…
Reference in New Issue