Docker / Dockerfile
MD Mahadi
Update Dockerfile
bb5a7d1 verified
Raw History Blame Contribute Delete
458 Bytes
# Use lightweight Node.js base image
FROM node:22-slim
# Install git, curl, and bash
RUN apt-get update && apt-get install -y git curl bash && rm -rf /var/lib/apt/lists/*
# Install OpenCode CLI globally
RUN npm install -g opencode-ai
# Create workspace directory
WORKDIR /workspace
# Hugging Face default port is 7860
EXPOSE 7860
# Start OpenCode web server bound to 0.0.0.0 and port 7860
CMD ["sh", "-c", "opencode web --hostname 0.0.0.0 --port 7860"]