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*.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm ci --only=production
|
||||
# Install all dependencies (including dev dependencies needed for build)
|
||||
RUN npm ci
|
||||
|
||||
# Copy source code
|
||||
COPY . .
|
||||
|
||||
@@ -8,7 +8,7 @@ services:
|
||||
image: whalehunting-game:latest
|
||||
container_name: whalehunting-game
|
||||
ports:
|
||||
- "8080:80"
|
||||
- "8880:80"
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost/"]
|
||||
|
||||
Reference in New Issue
Block a user