Skip to content

Commit

Permalink
fix: fix docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbrusegard committed Feb 5, 2024
1 parent 06f716f commit 6e9527f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 13 deletions.
3 changes: 0 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ next-env.d.ts
public/sitemap.xml
public/robots.txt

# prettier
prettier.config.js

# docker
Dockerfile*
.dockerignore
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM imbios/bun-node:20-alpine
FROM imbios/bun-node:20-slim

WORKDIR /app

COPY package.json bun.lockb ./

RUN bun install --frozen-lockfile --production
RUN bun install --production --frozen-lockfile

COPY . .

Expand Down
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"clsx": "^2.1.0",
"country-flag-icons": "^1.5.9",
"cva": "^1.0.0-beta.1",
"husky": "^9.0.10",
"lucide-react": "^0.312.0",
"next": "^14.0.4",
"next-intl": "^3.4.4",
Expand All @@ -53,7 +54,6 @@
"eslint-config-next": "^14.0.4",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"husky": "^8.0.0",
"lint-staged": "^15.2.0",
"postcss": "^8.4.31",
"prettier": "^3.1.0",
Expand Down
10 changes: 5 additions & 5 deletions src/app/[locale]/(dashboard)/news/[article]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import readingTime from 'reading-time';

import { AvatarIcon } from '@/components/profile/AvatarIcon';

export async function generateStaticParams() {
return articleData.map((article) => ({
article: String(article.id),
}));
}
// export async function generateStaticParams() {
// return articleData.map((article) => ({
// article: String(article.id),
// }));
// }

export async function generateMetadata({
params,
Expand Down
2 changes: 0 additions & 2 deletions src/components/news/CardGrid.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { articleMockData as articleData } from '@/mock-data/article';

import { cx } from '@/lib/utils';

import { ArticleCard } from '@/components/news/ArticleCard';
Expand Down

0 comments on commit 6e9527f

Please sign in to comment.