feat(01-01): Next.js 15 project with Docker Compose dev environment
- Next.js 15 with App Router, TypeScript, Tailwind CSS (v4), ESLint - docker-compose.yml with PostgreSQL 16, Redis 7, and app service - Dockerfile (Node 20 alpine) for containerized development - .env and .env.example with DATABASE_URL, DATABASE_URL_LOCAL, REDIS_URL - src/app/page.tsx updated to render NetForge heading - All three services start healthy with docker compose up -d
This commit is contained in:
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
FROM node:20-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install dependencies first (layer cache optimization)
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci
|
||||
|
||||
# Copy source code
|
||||
COPY . .
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["npm", "run", "dev"]
|
||||
Reference in New Issue
Block a user