opencode / Dockerfile
coincreator's picture
Update Dockerfile
7030ed3 verified
Raw
History Blame Contribute Delete
439 Bytes
FROM node:20-slim
RUN apt-get update && apt-get install -y \
git \
python3 \
python3-pip \
curl \
&& rm -rf /var/lib/apt/lists/*
RUN pip3 install --no-cache-dir --break-system-packages huggingface_hub[cli]
RUN npm install -g opencode-ai localtunnel
WORKDIR /workspace
COPY start.sh /start.sh
RUN chmod +x /start.sh
EXPOSE 7860 3000
ENTRYPOINT ["/start.sh"]
CMD ["web", "--port", "7860", "--hostname", "0.0.0.0"]