Changes: 1. Dockerfile: Keep git installation (may be needed for other operations) 2. README: Remove ALL mentions of Coolify (SAAC abstracts this) 3. README: Remove instructions about enabling "Include Source Commit in Build" 4. README: Simplify git_commit documentation 5. README: Update deployment key notes to be generic Git commit tracking will work automatically when properly configured in the SAAC backend without users needing to know about Coolify. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
30 lines
759 B
Docker
30 lines
759 B
Docker
FROM node:18-alpine
|
|
|
|
# Build arguments - Coolify provides SOURCE_COMMIT automatically
|
|
ARG SOURCE_COMMIT=unknown
|
|
ARG APP_VERSION=1.0.0
|
|
|
|
WORKDIR /app
|
|
|
|
# Install curl for healthcheck and git for version control operations
|
|
RUN apk add --no-cache curl git
|
|
|
|
# Copy package files first for layer caching
|
|
COPY package*.json ./
|
|
RUN npm install --production
|
|
|
|
# Copy app code (changes more often — below the cached layer)
|
|
COPY . .
|
|
|
|
# Set environment variables for runtime
|
|
# Extract first 7 characters of SOURCE_COMMIT for short hash
|
|
ENV GIT_COMMIT=${SOURCE_COMMIT:0:7} \
|
|
APP_VERSION=${APP_VERSION}
|
|
|
|
EXPOSE 3000
|
|
|
|
HEALTHCHECK --interval=10s --timeout=3s --start-period=5s --retries=2 \
|
|
CMD curl -f http://localhost:3000/health || exit 1
|
|
|
|
CMD ["node", "server.js"]
|