-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
32 lines (22 loc) · 629 Bytes
/
Copy pathDockerfile.dev
File metadata and controls
32 lines (22 loc) · 629 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Dockerfile for ElasticScope - Development
# Hot reload enabled for the single Next.js app
FROM node:20-alpine
WORKDIR /app
# Install dumb-init for proper signal handling
RUN apk add --no-cache dumb-init python3 make g++
# Copy package files
COPY package*.json ./
# Install all dependencies
RUN npm ci
# Copy source code (will be overridden by volume mount in dev)
COPY . ./
# Create data directory for SQLite
RUN mkdir -p /app/data
# Set environment variables
ENV NODE_ENV=development
ENV PORT=3001
# Expose Next.js port
EXPOSE 3001
# Start development server
ENTRYPOINT ["dumb-init", "--"]
CMD ["npm", "run", "dev"]