diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..00a9120 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +node_modules +.idea +public +.cache +.github diff --git a/Dockerfile b/Dockerfile index fd526af..b73b18c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,8 +20,8 @@ RUN apk --no-cache add shadow \ file \ pkgconf WORKDIR /usr/src/app +COPY package.json yarn.lock ./ RUN yarn global add gatsby-cli@3.3.0 -COPY yarn.lock ./ RUN yarn COPY . ./ RUN yarn build