chore(build): change to pnpm from yarn (#919)

* flip to npm

* try pnpm

* nothing good started with p anyway

* I want to go outside.

* Split out deps and build

* 30 seconds on the fetch, reintroduce the p

* lock it in

* flip lock file to pnpm

* nuke yarn.lock

* kirby no longer has yarn

* flip goreleaser to v4, was using node12.

* snapshots don't have tags

* Update README.md

* pin offline dockerfile

* Delete .yarnrc.yml

* Delete web/.yarn directory

* fix: update scripts

---------

Co-authored-by: ze0s <ze0s@riseup.net>
This commit is contained in:
Kyle Sanderson 2023-05-08 11:28:43 -07:00 committed by GitHub
parent ac61334f93
commit 762a0bb36b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 5248 additions and 8137 deletions

View file

@ -1,11 +1,10 @@
# build web
FROM node:18.7.0-alpine3.16 AS web-builder
COPY . ./
WORKDIR /web
COPY web/package.json web/yarn.lock web/.yarnrc.yml ./
COPY web/.yarn/releases/ ./.yarn/releases/
RUN yarn install --network-timeout 120000
COPY web .
RUN yarn build
RUN npm install -g pnpm && \
pnpm install --frozen-lockfile && \
pnpm run build
# build app
FROM golang:1.20-alpine3.16 AS app-builder
@ -55,4 +54,4 @@ COPY --from=app-builder /src/bin/autobrrctl /usr/local/bin/
EXPOSE 7474
ENTRYPOINT ["/usr/local/bin/autobrr", "--config", "/config"]
#CMD ["--config", "/config"]
#CMD ["--config", "/config"]