Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
feat: switch back to npm since yarn is too slow building images
Browse files Browse the repository at this point in the history
  • Loading branch information
kclejeune committed Jan 3, 2022
1 parent 42a5469 commit 490585c
Show file tree
Hide file tree
Showing 9 changed files with 9,228 additions and 5,046 deletions.
8 changes: 0 additions & 8 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
/*
!/*.json
!/*.lock
!.yarnrc.yml
!/*.config.cjs
!/*.config.js
!/src
!/static
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
7 changes: 0 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,3 @@ node_modules
/build
/.svelte-kit
/package
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
363 changes: 0 additions & 363 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

This file was deleted.

28 changes: 0 additions & 28 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

This file was deleted.

768 changes: 0 additions & 768 deletions .yarn/releases/yarn-3.1.0.cjs

This file was deleted.

8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
FROM node:lts-alpine AS build
WORKDIR /app
COPY package.json yarn.lock .yarnrc.yml .
COPY .yarn/ .yarn/
RUN yarn install --immutable

COPY package.json package-lock.json .
RUN npm ci
COPY . .
RUN yarn build && yarn workspaces focus --all --production
RUN npm run build && npm ci --prod

FROM node:lts-alpine AS deploy
WORKDIR /app
Expand Down
Loading

0 comments on commit 490585c

Please sign in to comment.