jerecom commited on
Commit
c50798e
·
verified ·
1 Parent(s): 907b166

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -26
Dockerfile CHANGED
@@ -1,27 +1,7 @@
1
- FROM oven/bun:1-debian
 
2
 
3
- # 1. Python aur build tools install karo (Zaroori!)
4
- RUN apt-get update && apt-get install -y \
5
- python3 \
6
- python3-pip \
7
- build-essential \
8
- g++ \
9
- git \
10
- curl \
11
- && rm -rf /var/lib/apt/lists/*
12
-
13
- # 2. OpenCode clone karo
14
- RUN git clone -b dev https://github.com/anomalyco/opencode.git /app
15
-
16
- WORKDIR /app
17
- RUN bun install
18
-
19
- # 3. Binary build karo
20
- RUN bun build --compile -o /app/opencode ./packages/opencode/src/index.ts
21
-
22
- # 4. Setup
23
- ENV OPENCODE_DATA_DIR=/data
24
- WORKDIR /data
25
-
26
- EXPOSE 7860
27
- CMD ["/app/opencode", "web", "--port", "7860"]
 
1
+ # OpenCode official container
2
+ docker pull ghcr.io/anomalyco/opencode:latest
3
 
4
+ # Available tags:
5
+ # - latest (stable)
6
+ # - beta (beta version)
7
+ # - 1.x.x (specific version)