@opencode-cloud/core 3.1.6 → 3.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.toml +1 -1
- package/package.json +1 -1
- package/src/docker/Dockerfile +6 -16
package/Cargo.toml
CHANGED
package/package.json
CHANGED
package/src/docker/Dockerfile
CHANGED
|
@@ -136,6 +136,8 @@ RUN --mount=type=cache,target=/var/lib/apt/lists \
|
|
|
136
136
|
RUN --mount=type=cache,target=/var/lib/apt/lists \
|
|
137
137
|
--mount=type=cache,target=/var/cache/apt \
|
|
138
138
|
apt-get update && apt-get install -y --no-install-recommends \
|
|
139
|
+
# libssl-dev depends on libssl3t64 with exact version match
|
|
140
|
+
libssl3t64=3.0.* \
|
|
139
141
|
libssl-dev=3.0.* \
|
|
140
142
|
libffi-dev=3.4.* \
|
|
141
143
|
zlib1g-dev=1:1.3.* \
|
|
@@ -513,12 +515,12 @@ RUN echo 'export PATH="/home/opencode/.local/bin:$PATH"' >> /home/opencode/.zshr
|
|
|
513
515
|
# opencode Installation (Fork from pRizz/opencode)
|
|
514
516
|
# -----------------------------------------------------------------------------
|
|
515
517
|
# Clone the fork and build opencode from source (as non-root user)
|
|
516
|
-
# Pin to specific commit for reproducibility
|
|
518
|
+
# Pin to specific commit for reproducibility
|
|
517
519
|
# Build opencode from source (BuildKit cache mounts disabled for now)
|
|
518
520
|
RUN rm -rf /tmp/opencode-repo \
|
|
519
521
|
&& git clone --depth 1 https://github.com/pRizz/opencode.git /tmp/opencode-repo \
|
|
520
522
|
&& cd /tmp/opencode-repo \
|
|
521
|
-
&& git checkout
|
|
523
|
+
&& git checkout 189700cee2fcdf0a1a1157aac1a7dea6afaf7c82 \
|
|
522
524
|
&& curl -fsSL https://bun.sh/install | bash -s "bun-v1.3.5" \
|
|
523
525
|
&& export PATH="/home/opencode/.bun/bin:${PATH}" \
|
|
524
526
|
&& bun install --frozen-lockfile \
|
|
@@ -591,7 +593,7 @@ RUN rm -f /etc/nginx/sites-enabled/default /etc/nginx/conf.d/default.conf 2>/dev
|
|
|
591
593
|
' try_files $uri =404;' \
|
|
592
594
|
' }' \
|
|
593
595
|
'' \
|
|
594
|
-
' location ~ ^/(auth|
|
|
596
|
+
' location ~ ^/(agent|auth|command|config|event|events|global|lsp|mcp|path|permission|project|provider|pty|question|rpc|session|sessions|status|v1|vcs|ws|api) {' \
|
|
595
597
|
' proxy_pass http://127.0.0.1:3001;' \
|
|
596
598
|
' proxy_http_version 1.1;' \
|
|
597
599
|
' proxy_set_header Upgrade $http_upgrade;' \
|
|
@@ -603,19 +605,7 @@ RUN rm -f /etc/nginx/sites-enabled/default /etc/nginx/conf.d/default.conf 2>/dev
|
|
|
603
605
|
' }' \
|
|
604
606
|
'' \
|
|
605
607
|
' location / {' \
|
|
606
|
-
' try_files $uri $uri/
|
|
607
|
-
' }' \
|
|
608
|
-
'' \
|
|
609
|
-
' location @opencode_fallback {' \
|
|
610
|
-
' if ($http_accept ~* "text/html") { rewrite ^ /index.html break; }' \
|
|
611
|
-
' proxy_pass http://127.0.0.1:3001;' \
|
|
612
|
-
' proxy_http_version 1.1;' \
|
|
613
|
-
' proxy_set_header Upgrade $http_upgrade;' \
|
|
614
|
-
' proxy_set_header Connection "upgrade";' \
|
|
615
|
-
' proxy_set_header Host $host;' \
|
|
616
|
-
' proxy_set_header X-Real-IP $remote_addr;' \
|
|
617
|
-
' proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;' \
|
|
618
|
-
' proxy_set_header X-Forwarded-Proto $scheme;' \
|
|
608
|
+
' try_files $uri $uri/ /index.html;' \
|
|
619
609
|
' }' \
|
|
620
610
|
'}' \
|
|
621
611
|
> /etc/nginx/conf.d/opencode.conf
|