jerecom commited on
Commit
bfa0837
·
verified ·
1 Parent(s): cf3aade

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM oven/bun:1-debian
2
+
3
+ RUN apt-get update && apt-get install -y git curl && rm -rf /var/lib/apt/lists/*
4
+
5
+ RUN git clone -b dev https://github.com/anomalyco/opencode.git /app
6
+ WORKDIR /app
7
+ RUN bun install
8
+
9
+ RUN bun build --compile -o /app/opencode ./packages/opencode/src/index.ts
10
+
11
+ ENV OPENCODE_DATA_DIR=/data
12
+ WORKDIR /data
13
+
14
+ EXPOSE 7860
15
+ CMD ["/app/opencode", "web", "--port", "7860"]