Fix: Force pull images in deploy workflow
All checks were successful
Build and Push / build-all (push) Successful in 25s
All checks were successful
Build and Push / build-all (push) Successful in 25s
This commit is contained in:
parent
48d5aec90c
commit
5430e434c3
3 changed files with 493 additions and 5 deletions
|
|
@ -9,14 +9,17 @@
|
|||
# Stage 1: Build TypeScript modules
|
||||
FROM node:20-alpine AS builder
|
||||
|
||||
# Install git for GitHub dependencies (nakama-runtime)
|
||||
RUN apk add --no-cache git
|
||||
# Install git for GitHub dependencies (nakama-runtime) and file for debugging
|
||||
RUN apk add --no-cache git file
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy module files and install dependencies
|
||||
COPY modules/package*.json ./
|
||||
RUN npm install
|
||||
# Use npm ci for reproducible builds from lock file
|
||||
RUN npm ci && \
|
||||
echo "=== Installed versions ===" && \
|
||||
npm ls --depth=0
|
||||
|
||||
# Copy source and build
|
||||
COPY modules/tsconfig.json ./
|
||||
|
|
@ -25,8 +28,16 @@ COPY modules/src ./src
|
|||
# Build with esbuild (output to build/index.js)
|
||||
RUN npm run build
|
||||
|
||||
# Verify build output exists
|
||||
RUN ls -la build/ && test -f build/index.js
|
||||
# Verify build output exists and show details
|
||||
RUN ls -la build/ && test -f build/index.js && \
|
||||
echo "=== File info ===" && \
|
||||
file build/index.js && \
|
||||
echo "=== Line count ===" && \
|
||||
wc -l build/index.js && \
|
||||
echo "=== First 5 lines ===" && \
|
||||
head -5 build/index.js && \
|
||||
echo "=== Lines 1259-1265 ===" && \
|
||||
sed -n '1259,1265p' build/index.js
|
||||
|
||||
# Stage 2: Nakama runtime with modules
|
||||
FROM registry.heroiclabs.com/heroiclabs/nakama:3.21.1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue