File size: 332 Bytes
4c5d6e2
 
 
 
e8767d9
4c5d6e2
 
e8767d9
 
4c5d6e2
e8767d9
4c5d6e2
 
e8767d9
4c5d6e2
 
e8767d9
4c5d6e2
 
e8767d9
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM node:18-alpine

WORKDIR /app

# Copy package files
COPY package*.json ./

# Install all dependencies
RUN npm ci

# Copy source code
COPY . .

# Build the application
RUN npm run build

# Expose port
EXPOSE 3000

# Start the application with explicit hostname binding
CMD ["npx", "next", "start", "-H", "0.0.0.0", "-p", "3000"]