Build and Push Docker Image / build (push) Successful in 46s
The Dockerfile was downloading from GitHub instead of using the local repository source, which meant our config.ts fixes weren't being included. Changed to COPY to build with the Gitea repository source. Also corrected EXPOSE from 3000 to 8080 (the actual port). Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
22 lines
410 B
Docker
22 lines
410 B
Docker
FROM node:22-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy source code from the repository
|
|
COPY . .
|
|
|
|
# Install ALL dependencies (including dev deps needed for build)
|
|
RUN npm ci
|
|
|
|
# Build the project
|
|
RUN npm run build
|
|
|
|
# Now prune dev dependencies
|
|
RUN npm prune --production
|
|
|
|
# Expose the MCP server port
|
|
EXPOSE 8080
|
|
|
|
# Start the pre-built MCP server directly (don't rebuild)
|
|
CMD ["node", "dist/index.js", "--transport", "http"]
|