Upload Dockerfile
Browse files12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152# 1. Node.js stable versionFROM node:18-slim
# 2. Install required system tools & HF CLIRUN apt-get update && apt-get install -y \ curl \ bash \ git \ python3 \ python3-pip \ python3.11-venv \ build-essential \ gcc \ g++ \ make \ nano \ zip \ unzip \ procps \ && curl -LsSf https://hf.co/cli/install.sh | bash \ && rm -rf /var/lib/apt/lists/*
# 3. Install OpenCodeRUN curl -fsSL https://opencode.ai/install | bash
# 4. Setup data folder and root permissionsUSER rootRUN mkdir -p /data && chmod 777 /dataWORKDIR /data
# 5. Copy entrypoint scriptCOPY entrypoint.sh /entrypoint.shRUN chmod +x /entrypoint.sh
# 6. Environment settings with RAM limitENV OPENCODE_DATA_DIR=/dataENV HOME=/dataENV PATH="/root/.local/bin:/home/node/.local/bin:$PATH"ENV NODE_OPTIONS="--max-old-space-size=14336"
# 7. Expose port 7860EXPOSE 7860
# 8. Run entrypoint scriptCMD ["/entrypoint.sh"]DockerfileAdded+52