opencode / Dockerfile
furqanahmadrao's picture
Update Dockerfile
d3746b8 verified
raw
history blame contribute delete
592 Bytes
FROM oven/bun:latest
WORKDIR /app
# ---- System deps for native modules ----
RUN apt-get update && apt-get install -y \
git \
curl \
bash \
build-essential \
python3 \
pkg-config \
&& rm -rf /var/lib/apt/lists/*
# ---- Install OpenCode ----
RUN bun add -g opencode-ai
# ---- Clone Portal ----
RUN git clone https://github.com/hosenur/portal.git
# ---- Install Portal deps ----
WORKDIR /app/portal
RUN bun install
# ---- Expose HF port ----
EXPOSE 7860
# ---- Startup ----
WORKDIR /app
COPY start.sh /app/start.sh
RUN chmod +x /app/start.sh
CMD ["bash", "/app/start.sh"]