Skip to content

Commit 6dd6cb6

Browse files
feat: 🎸 Docker setup
1 parent 9199905 commit 6dd6cb6

File tree

3 files changed

+76
-1
lines changed

3 files changed

+76
-1
lines changed

.dockerignore

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Environment files
2+
.env
3+
.env.*
4+
*.env
5+
6+
# Version control
7+
.git
8+
.gitignore
9+
.svn
10+
.hg
11+
12+
# Development files
13+
node_modules
14+
venv
15+
__pycache__
16+
*.pyc
17+
*.pyo
18+
*.pyd
19+
.Python
20+
.pytest_cache
21+
.coverage
22+
coverage
23+
.tox
24+
25+
# IDE specific files
26+
.idea
27+
.vscode
28+
*.swp
29+
*.swo
30+
.DS_Store
31+
32+
# Build and dist directories
33+
dist
34+
build
35+
*.egg-info
36+
37+
# Log files
38+
*.log
39+
logs
40+
npm-debug.log*
41+
42+
# Docker specific
43+
Dockerfile
44+
docker-compose*.yml
45+
.docker
46+
47+
# Documentation
48+
docs
49+
README.md
50+
CHANGELOG.md
51+
LICENSE
52+
53+
# Test files
54+
test
55+
tests

Dockerfile

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Use the official Node.js image as the base image
2+
FROM node:22
3+
4+
# Set the working directory inside the container
5+
WORKDIR /app
6+
7+
# Copy package.json and package-lock.json to the working directory
8+
COPY prisma ./prisma package*.json ./
9+
10+
# Install dependencies
11+
RUN npm install
12+
13+
# Copy the rest of the application code to the working directory
14+
COPY . .
15+
16+
# Expose the port the app runs on
17+
EXPOSE 3000
18+
19+
# Command to run the application
20+
CMD ["npm", "start"]

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"dev": "next dev",
77
"build": "npx prisma generate && next build",
8-
"start": "next start",
8+
"start": "npm run build && next start",
99
"lint": "next lint",
1010
"postinstall": "prisma generate"
1111
},

0 commit comments

Comments
 (0)