Opencodegit / Dockerfile
jerecom's picture
Create Dockerfile
bfa0837 verified
raw
history blame
380 Bytes
FROM oven/bun:1-debian
RUN apt-get update && apt-get install -y git curl && rm -rf /var/lib/apt/lists/*
RUN git clone -b dev https://github.com/anomalyco/opencode.git /app
WORKDIR /app
RUN bun install
RUN bun build --compile -o /app/opencode ./packages/opencode/src/index.ts
ENV OPENCODE_DATA_DIR=/data
WORKDIR /data
EXPOSE 7860
CMD ["/app/opencode", "web", "--port", "7860"]