You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32Lines changed: 32 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,38 @@ To start your development server run:
62
62
pnpm dev
63
63
```
64
64
65
+
## 🐳 Using Docker
66
+
67
+
### 1. Build the Image
68
+
Run in the project root:
69
+
```bash
70
+
docker build -t papers-codechef .
71
+
```
72
+
73
+
### 2. Run the Container
74
+
Start the app with:
75
+
```bash
76
+
docker run -p 3000:3000 papers-codechef
77
+
```
78
+
Access it at `http://localhost:3000`.
79
+
80
+
### 3. Environment Variables
81
+
Ensure `.env` is configured. Use `--env-file` to pass it:
82
+
```bash
83
+
docker run --env-file .env -p 3000:3000 papers-codechef
84
+
```
85
+
86
+
### 4. Stop & Clean Up
87
+
Stop the container:
88
+
```bash
89
+
docker ps
90
+
docker stop <CONTAINER ID>
91
+
```
92
+
Remove the image:
93
+
```bash
94
+
docker rmi papers-codechef
95
+
```
96
+
65
97
Before getting started, please ensure that the .env file is properly configured. The .env.example file has been provided for your reference, with examples of environment variables to be listed.
0 commit comments