chore: update Dockerfile and caniuse-lite

master
Dawid Wysokiński 2 months ago
parent fa0d8a550a
commit a2cb1cb2f0
Signed by: Kichiyaki
GPG Key ID: B5445E357FB8B892
  1. 2
      .dockerignore
  2. 8
      Dockerfile
  3. 6
      yarn.lock

@ -2,4 +2,4 @@ node_modules
.idea
public
.cache
.github

@ -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;"]

@ -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"

Loading…
Cancel
Save