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 # 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 # Install dependencies only when needed
FROM base AS deps FROM base AS deps
@ -12,7 +12,7 @@ COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
RUN \ RUN \
if [ -f yarn.lock ]; then yarn --frozen-lockfile; \ if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
elif [ -f package-lock.json ]; then npm ci; \ elif [ -f package-lock.json ]; then npm ci; \
elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i --frozen-lockfile; \ elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm i --frozen-lockfile; \
else echo "Lockfile not found." && exit 1; \ else echo "Lockfile not found." && exit 1; \
fi fi
@ -26,20 +26,22 @@ COPY . .
# Next.js collects completely anonymous telemetry data about general usage. # Next.js collects completely anonymous telemetry data about general usage.
# Learn more here: https://nextjs.org/telemetry # Learn more here: https://nextjs.org/telemetry
# Uncomment the following line in case you want to disable telemetry during the build. # 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 RUN \
# If using npm comment out above and use below instead if [ -f yarn.lock ]; then yarn run build; \
RUN npm install elif [ -f package-lock.json ]; then npm run build; \
RUN 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 # Production image, copy all the files and run next
FROM base AS runner FROM base AS runner
WORKDIR /app WORKDIR /app
ENV NODE_ENV production ENV NODE_ENV=production
# Uncomment the following line in case you want to disable telemetry during runtime. # 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 addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs RUN adduser --system --uid 1001 nextjs
@ -55,6 +57,8 @@ USER nextjs
EXPOSE 3000 EXPOSE 3000
ENV PORT 3000 ENV PORT=3000
ENV HOSTNAME="0.0.0.0"
CMD ["node", "server.js"] 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` - `make down-surrealdb`
## Example .env ## Example .env
```shell ```bash
# postgres or surrealdb # postgres or surrealdb
DB_TYPE=postgres DB_TYPE=postgres

View file

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

View file

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

4645
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load diff