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
.pnp.js .pnp.js
# yarn # lock files
yarn.lock yarn.lock
package-lock.json
# testing # testing
/coverage /coverage

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

4746
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff