+11
-1
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user