Fix Docker build and change port to 8880
- Install all dependencies including devDependencies for build - Change port mapping from 8080 to 8880 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -8,8 +8,8 @@ WORKDIR /app
|
|||||||
# Copy package files
|
# Copy package files
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
# Install dependencies
|
# Install all dependencies (including dev dependencies needed for build)
|
||||||
RUN npm ci --only=production
|
RUN npm ci
|
||||||
|
|
||||||
# Copy source code
|
# Copy source code
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ services:
|
|||||||
image: whalehunting-game:latest
|
image: whalehunting-game:latest
|
||||||
container_name: whalehunting-game
|
container_name: whalehunting-game
|
||||||
ports:
|
ports:
|
||||||
- "8080:80"
|
- "8880:80"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost/"]
|
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost/"]
|
||||||
|
|||||||
Reference in New Issue
Block a user