mikenicholson-passport-jwt
SUCCESS
3m 36s
History Source
SummaryIterations1Transcript6Dockerfile
Dockerfile20 lines · 468 chars
# Use official Node.js 22 on Alpine as base
FROM node:22.22.3-alpine3.23

# Create app directory
WORKDIR /app

# Install dependencies
COPY package*.json ./

RUN npm ci

# Copy the rest of the source code
COPY . .

# Build (if a build script exists; it's effectively a no-op for this project)
RUN npm run build --if-present

# Default command: just print a ready message to verify the image loads
CMD ["node", "-e", "console.log('passport-jwt container image ready')"]