diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..8585299 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +.cache/ +node_modules/ +public/ +Dockerfile +.dockerignore diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4070704 --- /dev/null +++ b/Dockerfile @@ -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