This commit is contained in:
Nomi Nonsense (Nonszy) 2025-02-18 12:14:13 +07:00
parent ece725197d
commit da61b39f4f
6 changed files with 55 additions and 4 deletions

3
.dockerignore Normal file
View File

@ -0,0 +1,3 @@
node_modules
.next
*.log

View File

@ -1,3 +0,0 @@
{
"extends": ["next/core-web-vitals", "next/typescript"]
}

31
Dockerfile Normal file
View File

@ -0,0 +1,31 @@
FROM node:18-alpine AS builder
RUN apk add --no-cache yarn
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile
COPY . .
RUN yarn build
FROM node:18-alpine AS runner
WORKDIR /app
ENV NODE_ENV production
COPY --from=builder /app/public ./public
COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
COPY --from=builder /app/package.json ./package.json
COPY --from=builder /app/yarn.lock ./yarn.lock
RUN yarn install --production --frozen-lockfile
EXPOSE 3000
CMD ["node", "server.js"]

19
eslint.config.mjs Normal file
View File

@ -0,0 +1,19 @@
import { FlatCompat } from '@eslint/eslintrc'
const compat = new FlatCompat({
baseDirectory: import.meta.dirname,
})
// WHY TF I INSTALLED ESLINT
const eslintConfig = [
...compat.config({
extends: ['next'],
rules: {
'react/no-unescaped-entities': 'off',
'@next/next/no-page-custom-font': 'off',
'@typescript-eslint/no-unused-vars': 'off'
},
}),
]
export default eslintConfig

View File

@ -12,7 +12,7 @@ export default function NotFound() {
<h1 className="font-bold text-8xl">404</h1> <h1 className="font-bold text-8xl">404</h1>
</header> </header>
<div className=""> <div className="">
Oh you lost, you know there's nothing here... Oh you lost, you know there&apos;s nothing here...
</div> </div>
</div> </div>
</main> </main>

View File

@ -6,6 +6,7 @@
"strict": true, "strict": true,
"noEmit": true, "noEmit": true,
"esModuleInterop": true, "esModuleInterop": true,
"target": "es2015",
"module": "esnext", "module": "esnext",
"moduleResolution": "bundler", "moduleResolution": "bundler",
"resolveJsonModule": true, "resolveJsonModule": true,