switch to pnpm
Some checks failed
deploy / deploy (push) Failing after 13s

This commit is contained in:
Lee 2023-11-08 06:19:10 +00:00
parent 5f6c0bbe22
commit 928e1df444
5 changed files with 4755 additions and 7095 deletions

3
.gitignore vendored

@ -5,8 +5,9 @@
/.pnp
.pnp.js
# yarn
# lock files
yarn.lock
package-lock.json
# testing
/coverage

@ -1,11 +1,11 @@
FROM fascinated/docker-images:node-latest AS base
FROM fascinated/docker-images:node-pnpm-latest AS base
# Install depends
FROM base AS deps
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY package.json* package-lock.yaml* ./
RUN npm install --frozen-lockfile --quiet
COPY package.json* pnpm-lock.yaml* ./
RUN pnpx install --frozen-lockfile
# Build from source
FROM base AS builder
@ -18,10 +18,10 @@ ARG GIT_REV
ENV GIT_REV ${GIT_REV}
# Build the app
RUN npm run build
RUN pnpm run build
# Generate sitemap
RUN npm run generate-sitemap
RUN pnpm run generate-sitemap
# Run the app
FROM base AS runner
@ -46,4 +46,4 @@ USER nextjs
EXPOSE 80
ENV HOSTNAME "0.0.0.0"
ENV PORT 80
CMD ["npm", "run", "start"]
CMD ["pnpm", "start"]

7087
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"dev": "next dev --turbo",
"build": "next build",
"generate-sitemap": "next-sitemap",
"start": "next start",

4746
pnpm-lock.yaml Normal file

File diff suppressed because it is too large Load Diff