diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..09fb4f8 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,12 @@ +.git +.gitignore +node_modules +npm-debug.log +README.md +.next +.env +.env.local +.DS_Store +docker-compose.yml +Dockerfile +.dockerignore diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f611cd2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +# Use Node.js LTS version +FROM node:20-alpine + +# Set working directory +WORKDIR /app + +# Copy package files +COPY package*.json ./ + +# Install dependencies +RUN npm install + +# Copy project files +COPY . . + +# Build the Next.js application +RUN npm run build + +# Expose the port the app runs on +EXPOSE 3000 + +# Start the application +CMD ["npm", "start"] diff --git a/README.md b/README.md index 4cb3b72..27794b4 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,21 @@ bun dev 4. Open [http://localhost:3000](http://localhost:3000) in your browser to start vibing! 🎧 -## 🎮 Usage +### 🐳 Using Docker + +You can also run NextBeats using Docker: + +```bash +# Build the Docker image +docker build -t next-beats . + +# Run the container +docker run -p 3000:3000 next-beats +``` + +Open [http://localhost:3000](http://localhost:3000) in your browser to start vibing! 🎧 + +### 🎮 Usage - **Channel Navigation**: Use the channel buttons to switch between different lofi streams - **Sound Effects**: Toggle various ambient sounds (rain, cafe, birds, etc.) to create your perfect atmosphere