Skip to content

Commit

Permalink
chore: update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
besscroft committed Apr 21, 2024
1 parent 8d41c35 commit 72b83c3
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 15 deletions.
8 changes: 2 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ RUN corepack enable pnpm && pnpm i --frozen-lockfile

FROM base AS builder

RUN apk update && apk add --no-cache git

ENV NEXT_TELEMETRY_DISABLED 1

WORKDIR /app
Expand All @@ -27,9 +25,7 @@ FROM base AS runner
WORKDIR /app

COPY --from=builder /app/public ./public
COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/.next/static ./.next/static
COPY --from=builder /app/.next/server ./.next/server
COPY --from=builder /app/.next /.next
COPY --from=builder /app/.env ./.env

EXPOSE 3000
Expand All @@ -40,6 +36,6 @@ ENV PORT 3000

# server.js is created by next build from the standalone output
# https://nextjs.org/docs/pages/api-reference/next-config-js/output
CMD HOSTNAME="0.0.0.0" node server.js
CMD HOSTNAME="0.0.0.0" next start

MAINTAINER besscroft
3 changes: 1 addition & 2 deletions app/admin/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Card, CardBody } from '@nextui-org/card'
import { Button, Chip } from '@nextui-org/react'
import { Button, Chip, Card, CardBody } from '@nextui-org/react'
import Link from 'next/link'
import { Star, MessageSquareHeart } from 'lucide-react'
import { fetchImagesAnalysis } from '~/server/lib/query'
Expand Down
3 changes: 1 addition & 2 deletions app/admin/settings/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use client'

import { Card, CardHeader } from '@nextui-org/card'
import { Link, Button } from '@nextui-org/react'
import { Card, CardHeader, Button } from '@nextui-org/react'
import { useRouter } from 'next-nprogress-bar'
import { usePathname } from 'next/navigation'

Expand Down
2 changes: 1 addition & 1 deletion app/admin/tag/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { fetchTagsList } from '~/server/lib/query'
import TagList from '~/components/admin/tag/TagList'
import { Card, CardHeader } from '@nextui-org/card'
import { Card, CardHeader } from '@nextui-org/react'
import RefreshButton from '~/components/RefreshButton'
import { HandleProps } from '~/types'
import React from 'react'
Expand Down
3 changes: 1 addition & 2 deletions components/admin/upload/FileUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import { toast } from 'sonner'
import useSWR from 'swr'
import { fetcher } from '~/utils/fetcher'
import { ExifType, TagType, ImageType } from '~/types'
import { Button, Select, SelectItem, Input, Divider } from '@nextui-org/react'
import { Card, CardBody, CardHeader, CardFooter } from '@nextui-org/card'
import { Button, Select, SelectItem, Input, Divider, Card, CardBody, CardHeader, CardFooter } from '@nextui-org/react'
import ExifReader from 'exifreader'

export default function FileUpload() {
Expand Down
2 changes: 0 additions & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ const nextConfig = {
serverComponentsExternalPackages: ['pg'],
},
eslint: {
// Warning: This allows production builds to successfully complete even if
// your project has ESLint errors.
ignoreDuringBuilds: true,
},
};
Expand Down

0 comments on commit 72b83c3

Please sign in to comment.