diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..a24029f --- /dev/null +++ b/.dockerignore @@ -0,0 +1,21 @@ +.storybook +tests +__tests__ +*.spec.ts +*.test.ts +node_modules +.yarn/cache +.eslint +.prettier +.stylelint +.env +.idea +.git +.gitignore +Dockerfile +README.md +*.log +test +docs +coverage +*.map diff --git a/Dockerfile b/Dockerfile index f4bc908..6ea0919 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18-alpine AS base +FROM node:lts-alpine AS base # Install dependencies only when needed FROM base AS deps @@ -10,7 +10,7 @@ RUN corepack enable COPY .yarn ./.yarn COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* .yarnrc.yml ./ -RUN yarn --frozen-lockfile +RUN yarn && rm -rf .yarn/cache .yarn/unplugged .yarn/build-state.yml # Rebuild the source code only when needed