add docker build
This commit is contained in:
parent
297c528248
commit
9a335a8c6b
2 changed files with 16 additions and 0 deletions
5
.dockerignore
Normal file
5
.dockerignore
Normal file
|
@ -0,0 +1,5 @@
|
|||
.cache/
|
||||
node_modules/
|
||||
public/
|
||||
Dockerfile
|
||||
.dockerignore
|
11
Dockerfile
Normal file
11
Dockerfile
Normal file
|
@ -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 a new issue