add docker build

This commit is contained in:
neri 2020-08-06 22:37:25 +02:00
parent 297c528248
commit 9a335a8c6b
2 changed files with 16 additions and 0 deletions

5
.dockerignore Normal file
View File

@ -0,0 +1,5 @@
.cache/
node_modules/
public/
Dockerfile
.dockerignore

11
Dockerfile Normal file
View 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