修正构建和启动环境配置

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-05-06 10:28:53 +08:00
parent 65fb368f40
commit 37f5bd8a80
3 changed files with 18 additions and 28 deletions
+11 -1
View File
@@ -1,4 +1,8 @@
FROM oven/bun:canary-slim AS base
FROM smanx/opencode:latest AS base
USER root
RUN apt-get update && apt-get install -y curl unzip && \
curl -fsSL https://bun.sh/install | bash && \
ln -s /root/.bun/bin/bun /usr/local/bin/bun
FROM base AS deps
@@ -30,5 +34,11 @@ COPY tsconfig.json opencode.json ./
COPY src ./src
COPY .opencode ./.opencode
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
COPY .opencode ./.opencode
EXPOSE 8787
CMD ["bun", "src/server.ts"]