ocweb / Dockerfile
habppyar's picture
Update Dockerfile
af87faa verified
raw
history blame contribute delete
475 Bytes
FROM node:20-slim
USER root
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates curl bash \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install OpenCode (official install script)
RUN curl -fsSL https://opencode.ai/install | bash
# Don't rely on .bashrc; make opencode available in non-interactive shells
ENV PATH="/root/.opencode/bin:${PATH}"
COPY . /app
RUN chmod +x /app/start.sh
EXPOSE 7860
CMD ["bash", "-lc", "/app/start.sh"]