add docker build
This commit is contained in:
parent
297c528248
commit
9a335a8c6b
|
@ -0,0 +1,5 @@
|
|||
.cache/
|
||||
node_modules/
|
||||
public/
|
||||
Dockerfile
|
||||
.dockerignore
|
|
@ -0,0 +1,11 @@
|
|||
FROM node:latest as build
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
ADD . /usr/src/app
|
||||
|
||||
ENV GATSBY_TELEMETRY_DISABLED 1
|
||||
RUN yarn
|
||||
RUN yarn build
|
||||
|
||||
FROM gatsbyjs/gatsby
|
||||
COPY --from=build /usr/src/app/public /pub
|
Loading…
Reference in New Issue