Skip to content

Commit fbba8a2

Browse files
committed
docker setup
1 parent 7ee97fc commit fbba8a2

9 files changed

+256
-20
lines changed

.dockerignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Include any files or directories that you don't want to be copied to your
2+
# container here (e.g., local build artifacts, temporary files, etc.).
3+
#
4+
# For more help, visit the .dockerignore file reference guide at
5+
# https://docs.docker.com/go/build-context-dockerignore/
6+
7+
**/.classpath
8+
**/.dockerignore
9+
**/.env
10+
**/.git
11+
**/.gitignore
12+
**/.project
13+
**/.settings
14+
**/.toolstarget
15+
**/.vs
16+
**/.vscode
17+
**/.next
18+
**/.cache
19+
**/*.*proj.user
20+
**/*.dbmdl
21+
**/*.jfm
22+
**/charts
23+
**/docker-compose*
24+
**/compose.y*ml
25+
**/Dockerfile*
26+
**/node_modules
27+
**/npm-debug.log
28+
**/obj
29+
**/secrets.dev.yaml
30+
**/values.dev.yaml
31+
**/build
32+
**/dist
33+
LICENSE
34+
README.md

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM oven/bun:1.0.30
2+
3+
WORKDIR /app
4+
5+
COPY package*.json ./
6+
7+
RUN bun install
8+
9+
COPY . .
10+
11+
EXPOSE 3000
12+
13+
CMD bun run dev

app/globals.css

Lines changed: 111 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,120 @@
22
@tailwind components;
33
@tailwind utilities;
44

5-
:root {
6-
--background: #ffffff;
7-
--foreground: #171717;
8-
}
95

10-
@media (prefers-color-scheme: dark) {
6+
7+
@layer base {
118
:root {
12-
--background: #0a0a0a;
13-
--foreground: #ededed;
9+
10+
--background: 0 0% 100%;
11+
12+
--foreground: 0 0% 3.9%;
13+
14+
--card: 0 0% 100%;
15+
16+
--card-foreground: 0 0% 3.9%;
17+
18+
--popover: 0 0% 100%;
19+
20+
--popover-foreground: 0 0% 3.9%;
21+
22+
--primary: 0 0% 9%;
23+
24+
--primary-foreground: 0 0% 98%;
25+
26+
--secondary: 0 0% 96.1%;
27+
28+
--secondary-foreground: 0 0% 9%;
29+
30+
--muted: 0 0% 96.1%;
31+
32+
--muted-foreground: 0 0% 45.1%;
33+
34+
--accent: 0 0% 96.1%;
35+
36+
--accent-foreground: 0 0% 9%;
37+
38+
--destructive: 0 84.2% 60.2%;
39+
40+
--destructive-foreground: 0 0% 98%;
41+
42+
--border: 0 0% 89.8%;
43+
44+
--input: 0 0% 89.8%;
45+
46+
--ring: 0 0% 3.9%;
47+
48+
--chart-1: 12 76% 61%;
49+
50+
--chart-2: 173 58% 39%;
51+
52+
--chart-3: 197 37% 24%;
53+
54+
--chart-4: 43 74% 66%;
55+
56+
--chart-5: 27 87% 67%;
57+
58+
--radius: 0.5rem
59+
}
60+
.dark {
61+
62+
--background: 0 0% 3.9%;
63+
64+
--foreground: 0 0% 98%;
65+
66+
--card: 0 0% 3.9%;
67+
68+
--card-foreground: 0 0% 98%;
69+
70+
--popover: 0 0% 3.9%;
71+
72+
--popover-foreground: 0 0% 98%;
73+
74+
--primary: 0 0% 98%;
75+
76+
--primary-foreground: 0 0% 9%;
77+
78+
--secondary: 0 0% 14.9%;
79+
80+
--secondary-foreground: 0 0% 98%;
81+
82+
--muted: 0 0% 14.9%;
83+
84+
--muted-foreground: 0 0% 63.9%;
85+
86+
--accent: 0 0% 14.9%;
87+
88+
--accent-foreground: 0 0% 98%;
89+
90+
--destructive: 0 62.8% 30.6%;
91+
92+
--destructive-foreground: 0 0% 98%;
93+
94+
--border: 0 0% 14.9%;
95+
96+
--input: 0 0% 14.9%;
97+
98+
--ring: 0 0% 83.1%;
99+
100+
--chart-1: 220 70% 50%;
101+
102+
--chart-2: 160 60% 45%;
103+
104+
--chart-3: 30 80% 55%;
105+
106+
--chart-4: 280 65% 60%;
107+
108+
--chart-5: 340 75% 55%
14109
}
15110
}
16111

17-
body {
18-
color: var(--foreground);
19-
background: var(--background);
20-
font-family: Arial, Helvetica, sans-serif;
112+
113+
114+
@layer base {
115+
* {
116+
@apply border-border outline-ring/50;
117+
}
118+
body {
119+
@apply bg-background text-foreground;
120+
}
21121
}

bun.lockb

1.96 KB
Binary file not shown.

components.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": true,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "tailwind.config.ts",
8+
"css": "app/globals.css",
9+
"baseColor": "neutral",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
19+
},
20+
"iconLibrary": "lucide"
21+
}

docker-compose.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: "3.9"
2+
3+
services:
4+
application:
5+
build:
6+
context: .
7+
ports:
8+
- 3000:3000
9+
volumes:
10+
- .:/app
11+
- /app/node_modules
12+
# docker compose up --build - using docker compose
13+

lib/utils.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { clsx, type ClassValue } from "clsx"
2+
import { twMerge } from "tailwind-merge"
3+
4+
export function cn(...inputs: ClassValue[]) {
5+
return twMerge(clsx(inputs))
6+
}

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12+
"class-variance-authority": "^0.7.1",
13+
"clsx": "^2.1.1",
14+
"lucide-react": "^0.475.0",
15+
"next": "15.1.7",
1216
"react": "^19.0.0",
1317
"react-dom": "^19.0.0",
14-
"next": "15.1.7"
18+
"tailwind-merge": "^3.0.1",
19+
"tailwindcss-animate": "^1.0.7"
1520
},
1621
"devDependencies": {
1722
"typescript": "^5",

tailwind.config.ts

Lines changed: 52 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,62 @@
11
import type { Config } from "tailwindcss";
22

33
export default {
4-
content: [
4+
darkMode: ["class"],
5+
content: [
56
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
67
"./components/**/*.{js,ts,jsx,tsx,mdx}",
78
"./app/**/*.{js,ts,jsx,tsx,mdx}",
89
],
910
theme: {
10-
extend: {
11-
colors: {
12-
background: "var(--background)",
13-
foreground: "var(--foreground)",
14-
},
15-
},
11+
extend: {
12+
colors: {
13+
background: 'hsl(var(--background))',
14+
foreground: 'hsl(var(--foreground))',
15+
card: {
16+
DEFAULT: 'hsl(var(--card))',
17+
foreground: 'hsl(var(--card-foreground))'
18+
},
19+
popover: {
20+
DEFAULT: 'hsl(var(--popover))',
21+
foreground: 'hsl(var(--popover-foreground))'
22+
},
23+
primary: {
24+
DEFAULT: 'hsl(var(--primary))',
25+
foreground: 'hsl(var(--primary-foreground))'
26+
},
27+
secondary: {
28+
DEFAULT: 'hsl(var(--secondary))',
29+
foreground: 'hsl(var(--secondary-foreground))'
30+
},
31+
muted: {
32+
DEFAULT: 'hsl(var(--muted))',
33+
foreground: 'hsl(var(--muted-foreground))'
34+
},
35+
accent: {
36+
DEFAULT: 'hsl(var(--accent))',
37+
foreground: 'hsl(var(--accent-foreground))'
38+
},
39+
destructive: {
40+
DEFAULT: 'hsl(var(--destructive))',
41+
foreground: 'hsl(var(--destructive-foreground))'
42+
},
43+
border: 'hsl(var(--border))',
44+
input: 'hsl(var(--input))',
45+
ring: 'hsl(var(--ring))',
46+
chart: {
47+
'1': 'hsl(var(--chart-1))',
48+
'2': 'hsl(var(--chart-2))',
49+
'3': 'hsl(var(--chart-3))',
50+
'4': 'hsl(var(--chart-4))',
51+
'5': 'hsl(var(--chart-5))'
52+
}
53+
},
54+
borderRadius: {
55+
lg: 'var(--radius)',
56+
md: 'calc(var(--radius) - 2px)',
57+
sm: 'calc(var(--radius) - 4px)'
58+
}
59+
}
1660
},
17-
plugins: [],
61+
plugins: [require("tailwindcss-animate")],
1862
} satisfies Config;

0 commit comments

Comments
 (0)