2ch commited on
Commit
d46916f
·
verified ·
1 Parent(s): 365de9b

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM archlinux:base
2
+ WORKDIR /app
3
+ RUN pacman -Syu --noconfirm && \
4
+ pacman -S --noconfirm curl git bun && \
5
+ pacman -Scc --noconfirm && \
6
+ mkdir -p /opt/windsurf/data/db && git clone --depth 1 https://github.com/dwgx/WindsurfAPI.git . && bash install-ls.sh && \
7
+ cat > /app/resolv.conf << 'EOF'
8
+ nameserver 1.1.1.1
9
+ nameserver 1.0.0.1
10
+ nameserver 2606:4700:4700::1111
11
+ nameserver 2606:4700:4700::1002"
12
+ EOF \
13
+ echo -e '#!/bin/sh\nmv /app/resolv.conf /etc/resolv.conf\nexec "$@"\n' > entrypoint.sh && chmod +x /entrypoint.sh && cat entrypoint.sh && \
14
+ cat > .env << 'EOF'
15
+ PORT=7860
16
+ HOST=127.0.0.1
17
+ DEFAULT_MODEL=gemini-2.5-flash
18
+ LOG_LEVEL=error
19
+ LS_BINARY_PATH=/opt/windsurf/language_server_linux_x64
20
+ LS_PORT=42100
21
+ DASHBOARD_PASSWORD=
22
+ API_KEY=
23
+ EOF
24
+ ENTRYPOINT ["/entrypoint.sh"]
25
+ CMD ["bun", "/app/src/index.js"]