修正构建和启动环境配置

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-05-06 10:28:53 +08:00
parent 1afd0d9f3e
commit fb2b4fad9f
4 changed files with 28 additions and 30 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"]