Skip to content

feat: 🎸 Docker setup #124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Environment files
.env
.env.*
*.env

# Version control
.git
.gitignore
.svn
.hg

# Development files
node_modules
venv
__pycache__
*.pyc
*.pyo
*.pyd
.Python
.pytest_cache
.coverage
coverage
.tox

# IDE specific files
.idea
.vscode
*.swp
*.swo
.DS_Store

# Build and dist directories
dist
build
*.egg-info

# Log files
*.log
logs
npm-debug.log*

# Docker specific
Dockerfile
docker-compose*.yml
.docker

# Documentation
docs
README.md
CHANGELOG.md
LICENSE

# Test files
test
tests
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Use the official Node.js image as the base image
FROM node:22

# Set the working directory inside the container
WORKDIR /app

# Copy package.json and package-lock.json to the working directory
COPY prisma ./prisma package*.json ./

# Install dependencies
RUN npm install

# Copy the rest of the application code to the working directory
COPY . .

# Expose the port the app runs on
EXPOSE 3000

# Command to run the application
CMD ["npm", "start"]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"dev": "next dev",
"build": "npx prisma generate && next build",
"start": "next start",
"start": "npm run build && next start",
"lint": "next lint",
"postinstall": "prisma generate"
},
Expand Down
Loading