diff --git a/.dockerignore b/.dockerignore index 00a9120..3e6050f 100644 --- a/.dockerignore +++ b/.dockerignore @@ -2,4 +2,4 @@ node_modules .idea public .cache -.github + diff --git a/Dockerfile b/Dockerfile index 6723740..d9f8d73 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ -FROM node:14.19.2-alpine as build-deps +FROM node:14.19.2-alpine as builder ENV NODE_ENV=production +ENV GATSBY_TELEMETRY_DISABLED=1 RUN apk --no-cache add shadow \ gcc \ @@ -18,15 +19,12 @@ RUN apk --no-cache add shadow \ pkgconf WORKDIR /usr/src/app COPY package.json yarn.lock ./ -RUN yarn global add gatsby-cli@3.3.0 RUN yarn COPY . ./ RUN yarn build -#Stage 2 - FROM nginx:1.21-alpine -COPY --from=build-deps /usr/src/app/public /var/www +COPY --from=builder /usr/src/app/public /var/www COPY default.conf /etc/nginx/templates/default.conf.template EXPOSE 80 CMD ["nginx", "-g", "daemon off;"] diff --git a/yarn.lock b/yarn.lock index 83ac889..bf5a0e6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3246,9 +3246,9 @@ caniuse-api@^3.0.0: lodash.uniq "^4.5.0" caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001125, caniuse-lite@^1.0.30001272, caniuse-lite@^1.0.30001274: - version "1.0.30001279" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001279.tgz#eb06818da481ef5096a3b3760f43e5382ed6b0ce" - integrity sha512-VfEHpzHEXj6/CxggTwSFoZBBYGQfQv9Cf42KPlO79sWXCD1QNKWKsKzFeWL7QpZHJQYAvocqV6Rty1yJMkqWLQ== + version "1.0.30001419" + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001419.tgz" + integrity sha512-aFO1r+g6R7TW+PNQxKzjITwLOyDhVRLjW0LcwS/HCZGUUKTGNp9+IwLC4xyDSZBygVL/mxaFR3HIV6wEKQuSzw== ccount@^1.0.0: version "1.1.0"