CI stuff
This commit is contained in:
parent
ece725197d
commit
da61b39f4f
3
.dockerignore
Normal file
3
.dockerignore
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
node_modules
|
||||||
|
.next
|
||||||
|
*.log
|
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": ["next/core-web-vitals", "next/typescript"]
|
|
||||||
}
|
|
31
Dockerfile
Normal file
31
Dockerfile
Normal 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
19
eslint.config.mjs
Normal 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
|
@ -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's nothing here...
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user