Skip to content

Commit

Permalink
Add gptscript
Browse files Browse the repository at this point in the history
  • Loading branch information
richiejp committed Apr 23, 2024
1 parent 41139b8 commit ea246b0
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fail-fast: false
matrix:
# ADD NEW Dockerfile directories HERE!!!
contexts: [deepspeed-mii, elia, llm-cli]
contexts: [deepspeed-mii, elia, llm-cli, gptscript]
steps:
- uses: actions/setup-go@v4
if: startsWith(github.ref, format('refs/tags/{0}/v', matrix.contexts))
Expand Down
36 changes: 36 additions & 0 deletions containers/gptscript/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
FROM alpine/git as cloner

WORKDIR /app

RUN git clone https://github.com/gptscript-ai/gptscript.git .

FROM oven/bun:latest as bun-builder

WORKDIR /app

COPY --from=cloner /app/ui /app
RUN bun install
RUN bun run generate

FROM golang:alpine as go-builder

WORKDIR /app

COPY --from=cloner /app /app
COPY --from=bun-builder /app/.output/public /app/static/ui
RUN CGO_ENABLED=0 go build -ldflags="-s -w" .

FROM alpine:latest

WORKDIR /scripts

COPY --from=cloner /app/examples /scripts/examples
COPY --from=go-builder /app/gptscript /usr/local/bin/gptscript

VOLUME ["/scripts"]

ENTRYPOINT ["gptscript"]

ENV GPTSCRIPT_LISTEN_ADDRESS=0.0.0.0:9090

CMD ["--server"]

0 comments on commit ea246b0

Please sign in to comment.