File tree Expand file tree Collapse file tree 3 files changed +31
-1
lines changed Expand file tree Collapse file tree 3 files changed +31
-1
lines changed Original file line number Diff line number Diff line change
1
+ FROM node:18
2
+
3
+ WORKDIR /app
4
+
5
+ COPY package*.json ./
6
+ RUN npm install
7
+
8
+ RUN npm run db:generate
9
+
10
+ COPY . .
11
+
12
+ EXPOSE 3000
13
+
14
+ CMD npm run dev
Original file line number Diff line number Diff line change @@ -45,6 +45,20 @@ This project is a comprehensive meme management platform that allows users to se
45
45
```
46
46
5 . Open [ http://localhost:3000 ] ( http://localhost:3000 ) in your browser
47
47
48
+ ### Setting up with Docker
49
+
50
+ You can develop with Docker as well with the following commands:
51
+
52
+ 1 . Build image
53
+ ```
54
+ docker build -t memer .
55
+ ```
56
+ 2. Run the image
57
+ ```
58
+ docker run -p 3000:3000 memer
59
+ ```
60
+ 3. Open [http://localhost:3000](http://localhost:3000) in your browser
61
+
48
62
## Contributing
49
63
50
64
Contributions are welcome! Please feel free to submit a Pull Request.
Original file line number Diff line number Diff line change 8
8
"build" : " prisma generate && next build" ,
9
9
"postbuild" : " next-sitemap" ,
10
10
"start" : " next start" ,
11
- "lint" : " next lint"
11
+ "lint" : " next lint" ,
12
+ "db:generate" : " npx prisma generate" ,
13
+ "db:studio" : " npx prisma studio"
12
14
},
13
15
"dependencies" : {
14
16
"@clerk/nextjs" : " ^5.1.3" ,
You can’t perform that action at this time.
0 commit comments