chore: update dependencies

This commit is contained in:
Elijah McMorris 2025-03-06 00:56:20 -08:00
parent 509508990e
commit c8338e5516
Signed by: NexVeridian
SSH key fingerprint: SHA256:bsA1SKZxuEcEVHAy3gY1HUeM5ykRJl0U0kQHQn0hMg8
7 changed files with 4696 additions and 5554 deletions

View file

@ -1,5 +1,5 @@
# https://nextjs.org/docs/pages/building-your-application/deploying#docker-image
FROM node:20-alpine AS base
FROM node:22-alpine AS base
# Install dependencies only when needed
FROM base AS deps
@ -10,11 +10,11 @@ WORKDIR /app
# Install dependencies based on the preferred package manager
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
RUN \
if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
elif [ -f package-lock.json ]; then npm ci; \
elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i --frozen-lockfile; \
else echo "Lockfile not found." && exit 1; \
fi
if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
elif [ -f package-lock.json ]; then npm ci; \
elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm i --frozen-lockfile; \
else echo "Lockfile not found." && exit 1; \
fi
# Rebuild the source code only when needed
@ -26,20 +26,22 @@ COPY . .
# Next.js collects completely anonymous telemetry data about general usage.
# Learn more here: https://nextjs.org/telemetry
# Uncomment the following line in case you want to disable telemetry during the build.
ENV NEXT_TELEMETRY_DISABLED 1
ENV NEXT_TELEMETRY_DISABLED=1
# RUN yarn build
# If using npm comment out above and use below instead
RUN npm install
RUN npm run build
RUN \
if [ -f yarn.lock ]; then yarn run build; \
elif [ -f package-lock.json ]; then npm run build; \
elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm run build; \
else echo "Lockfile not found." && exit 1; \
fi
# Production image, copy all the files and run next
FROM base AS runner
WORKDIR /app
ENV NODE_ENV production
ENV NODE_ENV=production
# Uncomment the following line in case you want to disable telemetry during runtime.
ENV NEXT_TELEMETRY_DISABLED 1
ENV NEXT_TELEMETRY_DISABLED=1
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs
@ -55,6 +57,8 @@ USER nextjs
EXPOSE 3000
ENV PORT 3000
ENV PORT=3000
ENV HOSTNAME="0.0.0.0"
CMD ["node", "server.js"]

View file

@ -24,7 +24,7 @@ Create data folder next to docker-compose.yml and .env, and set the data type in
- `make down-surrealdb`
## Example .env
```shell
```bash
# postgres or surrealdb
DB_TYPE=postgres

View file

@ -24,7 +24,7 @@ services:
ports:
- 5432:5432
volumes:
- ./data/postgres:/var/lib/postgresql/data
- data:/var/lib/postgresql/data
networks:
- postgres

View file

@ -34,7 +34,7 @@ services:
ports:
- 8000:8000
volumes:
- ./data:/data
- data:/data
networks:
surrealdb:
# ipv4_address: 172.20.0.1

5507
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -9,42 +9,42 @@
"lint": "next lint"
},
"dependencies": {
"@hookform/resolvers": "^3.9.0",
"@radix-ui/react-dropdown-menu": "^2.1.1",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-label": "^2.1.0",
"@radix-ui/react-navigation-menu": "^1.2.0",
"@radix-ui/react-popover": "^1.1.1",
"@radix-ui/react-select": "^2.1.1",
"@radix-ui/react-slot": "^1.1.0",
"@tanstack/react-table": "^8.20.1",
"class-variance-authority": "^0.7.0",
"@hookform/resolvers": "^3.10.0",
"@radix-ui/react-dropdown-menu": "^2.1.6",
"@radix-ui/react-icons": "^1.3.2",
"@radix-ui/react-label": "^2.1.2",
"@radix-ui/react-navigation-menu": "^1.2.5",
"@radix-ui/react-popover": "^1.1.6",
"@radix-ui/react-select": "^2.1.6",
"@radix-ui/react-slot": "^1.1.2",
"@tanstack/react-table": "^8.21.2",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"dotenv": "^16.4.5",
"dotenv": "^16.4.7",
"next": "14.2.5",
"next-themes": "^0.3.0",
"postgres": "^3.4.4",
"postgres": "^3.4.5",
"react": "^18.3.1",
"react-hook-form": "^7.52.2",
"surrealdb.js": "^1.0.0-beta.18",
"swr": "^2.2.5",
"tailwind-merge": "^2.4.0",
"react-hook-form": "^7.54.2",
"surrealdb.js": "^1.0.0",
"swr": "^2.3.2",
"tailwind-merge": "^2.6.0",
"tailwindcss-animate": "^1.0.7",
"ws": "^8.18.0",
"zod": "^3.23.8"
"ws": "^8.18.1",
"zod": "^3.24.2"
},
"devDependencies": {
"@types/node": "^22",
"@types/prop-types": "^15.7.12",
"@types/react": "^18.3.3",
"@types/react-dom": "^18",
"@types/node": "^22.13.9",
"@types/prop-types": "^15.7.14",
"@types/react": "^18.3.18",
"@types/react-dom": "^18.3.5",
"autoprefixer": "^10.4.20",
"eslint": "^8",
"eslint": "^8.57.1",
"eslint-config-next": "14.2.5",
"postcss": "^8",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.5",
"tailwindcss": "^3.4.7",
"typescript": "^5"
"postcss": "^8.5.3",
"prettier": "^3.5.3",
"prettier-plugin-tailwindcss": "^0.6.11",
"tailwindcss": "^3.4.17",
"typescript": "^5.8.2"
}
}

4645
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load diff