Skip to content

Commit fa11452

Browse files
feat: add docker (#4)
* add: dockerfile + update scripts * update readme with docker setup
1 parent ac6f012 commit fa11452

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,20 @@ This project is a comprehensive meme management platform that allows users to se
4545
```
4646
5. Open [http://localhost:3000](http://localhost:3000) in your browser
4747

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+
4862
## Contributing
4963
5064
Contributions are welcome! Please feel free to submit a Pull Request.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"build": "prisma generate && next build",
99
"postbuild": "next-sitemap",
1010
"start": "next start",
11-
"lint": "next lint"
11+
"lint": "next lint",
12+
"db:generate": "npx prisma generate",
13+
"db:studio": "npx prisma studio"
1214
},
1315
"dependencies": {
1416
"@clerk/nextjs": "^5.1.3",

0 commit comments

Comments
 (0)