MCP / Dockerfile
mmty's picture
Create Dockerfile
040f294 verified
Raw History Blame Contribute Delete
339 Bytes
# Use a lightweight Node.js image
FROM node:18-alpine
# Set working directory
WORKDIR /app
# Initialize project and install dependencies
RUN npm init -y && \
npm install express cors node-fetch
# Copy the server code
COPY server.js .
# Expose port 7860 (Hugging Face default)
EXPOSE 7860
# Run the server
CMD ["node", "server.js"]