Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +6 -26
Dockerfile
CHANGED
|
@@ -1,27 +1,7 @@
|
|
| 1 |
-
|
|
|
|
| 2 |
|
| 3 |
-
#
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|