Skip to content

Commit 0eff8c0

Browse files
committed
chore: docker image update
1 parent 34e8d50 commit 0eff8c0

File tree

10 files changed

+25
-27
lines changed

10 files changed

+25
-27
lines changed

.github/workflows/prod-deploy.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,20 @@ jobs:
5959
ECR_REPOSITORY: ${{ secrets.REPOSITORY }}
6060
IMAGE_TAG: ${{ vars.IMAGE_TAG }}
6161
run: |
62-
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
63-
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
62+
docker buildx build \
63+
--cache-from type=local,src=/tmp/.buildx-cache \
64+
--cache-to type=local,dest=/tmp/.buildx-cache-new,mode=max \
65+
--tag $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG \
66+
--push \
67+
.
68+
69+
# Temp fix for cache issue
70+
# https://github.com/docker/build-push-action/issues/252
71+
# https://github.com/moby/buildkit/issues/1896
72+
- name: Move cache
73+
run: |
74+
rm -rf /tmp/.buildx-cache
75+
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
6476
6577
deploy-frontend-service:
6678
name: Deploy to Frontend Service

Dockerfile

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Install dependencies only when needed
2-
FROM node:23-alpine AS deps
2+
FROM node:24-alpine AS deps
33
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
44
RUN apk add --no-cache libc6-compat
55
WORKDIR /app
@@ -15,7 +15,7 @@ RUN \
1515

1616

1717
# Rebuild the source code only when needed
18-
FROM node:23-alpine AS builder
18+
FROM node:24-alpine AS builder
1919
WORKDIR /app
2020
COPY . .
2121

@@ -27,18 +27,16 @@ RUN yarn build
2727
# RUN npm run build
2828

2929
# Production image, copy all the files and run next
30-
FROM node:23-alpine AS runner
30+
FROM node:24-alpine AS runner
3131
WORKDIR /app
3232

33-
ENV NODE_ENV production
33+
ENV NODE_ENV=production
3434
# Uncomment the following line in case you want to disable telemetry during runtime.
35-
ENV NEXT_TELEMETRY_DISABLED 1
35+
ENV NEXT_TELEMETRY_DISABLED=1
3636

3737
RUN addgroup --system --gid 1001 nodejs
3838
RUN adduser --system --uid 1001 nextjs
3939

40-
# COPY --from=builder /app/public ./public
41-
4240
# Automatically leverage output traces to reduce image size
4341
# https://nextjs.org/docs/advanced-features/output-file-tracing
4442
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
@@ -49,6 +47,6 @@ USER nextjs
4947

5048
EXPOSE 3000
5149

52-
ENV PORT 3000
50+
ENV PORT=3000
5351

5452
CMD ["node", "server.js"]

app/(protected)/admin/collections/[id]/manage-books/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import {
44
BreadcrumbItem,
55
BreadcrumbLink,
66
BreadcrumbList,
7-
BreadcrumbPage,
87
BreadcrumbSeparator,
98
} from '@/components/ui/breadcrumb'
109
import { Card } from '@/components/ui/card'

app/(protected)/admin/jobs/page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {
1515
PaginationPrevious,
1616
} from '@/components/ui/pagination'
1717
import { Verify } from '@/lib/firebase/firebase'
18-
import Link from 'next/link'
1918
import type { Metadata } from 'next'
2019
import { SITE_NAME } from '@/lib/consts'
2120
import { TabLink } from '@/components/borrows/TabLink'
@@ -105,7 +104,7 @@ export default async function Jobs({
105104

106105
<BreadcrumbItem>
107106
<BreadcrumbPage>
108-
Subscriptions
107+
Jobs
109108
<Badge className="ml-4" variant="outline">
110109
{res.meta.total}
111110
</Badge>

app/(protected)/admin/subscriptions/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { TabLink } from '@/components/borrows/TabLink'
2424
import { Badge } from '@/components/ui/badge'
2525
import { cookies } from 'next/headers'
2626
import { ModelFilter } from '@/components/common/ModelFilter'
27-
import { DateFilter, UserFilter } from '@/components/common/filters'
27+
import { UserFilter } from '@/components/common/filters'
2828

2929
export const metadata: Metadata = {
3030
title: `Subscriptions · ${SITE_NAME}`,

app/(protected)/books/watchlist/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {
1313
PaginationNext,
1414
PaginationPrevious,
1515
} from '@/components/ui/pagination'
16-
import { getListBooks } from '@/lib/api/book'
1716
import Link from 'next/link'
1817
import type { Metadata } from 'next'
1918
import { SITE_NAME } from '@/lib/consts'

app/terms/page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { getTermsDoc } from '@/lib/api/docs'
2-
import { Calendar, ArrowLeft } from 'lucide-react'
2+
import { ArrowLeft } from 'lucide-react'
33
import { Button } from '@/components/ui/button'
4-
import { Card, CardContent } from '@/components/ui/card'
54
import Link from 'next/link'
65

76
export default async function TermsPage() {

components/button-toggle-theme.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client'
22

33
import * as React from 'react'
4-
import { Monitor, Moon, Sun } from 'lucide-react'
4+
import { Moon, Sun } from 'lucide-react'
55
import { useTheme } from 'next-themes'
66

77
import { Button } from '@/components/ui/button'

components/collections/FormCollection.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,6 @@ import {
2020
CardTitle,
2121
} from '@/components/ui/card'
2222
import { Input } from '@/components/ui/input'
23-
import { Label } from '@/components/ui/label'
24-
import {
25-
Select,
26-
SelectContent,
27-
SelectItem,
28-
SelectTrigger,
29-
SelectValue,
30-
} from '@/components/ui/select'
3123
import { Textarea } from '@/components/ui/textarea'
3224
import { Upload, X, ChevronsUpDown, Check } from 'lucide-react'
3325
import { useEffect, useState } from 'react'

components/dashboard/PowerUsersWrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { format, parse } from 'date-fns'
1+
import { format } from 'date-fns'
22
import { PowerUsersChart } from './RankingChart'
33
import { getPowerUsersAnalysis } from '@/lib/api/analysis'
44

0 commit comments

Comments
 (0)