Skip to content

Commit

Permalink
chore: add chromium from apk
Browse files Browse the repository at this point in the history
  • Loading branch information
ibuildthecloud committed Oct 25, 2024
1 parent 66daf99 commit 2eaca44
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store \
FROM cgr.dev/chainguard/wolfi-base AS final

# Install build dependencies
RUN apk add --no-cache git py3.12-pip openssh-server nodejs bash tini
RUN apk add --no-cache git py3.12-pip openssh-server npm bash tini chromium
RUN ln -s /usr/bin/python3.12 /usr/bin/python3

RUN sed -E 's/^#(PermitRootLogin)no/\1yes/' /etc/ssh/sshd_config -i
Expand Down Expand Up @@ -50,7 +50,6 @@ ENV XDG_CACHE_HOME=/data/cache
ENV GPTSCRIPT_SYSTEM_TOOLS_DIR=/otto8-tools/
ENV OTTO_SERVER_WORKSPACE_TOOL=/otto8-tools/workspace-provider
ENV OTTO_SERVER_TOOL_REGISTRY=/otto8-tools
ENV PATH=/otto8-tools/chrome:$PATH
WORKDIR /data
VOLUME /data
CMD ["run.sh"]
6 changes: 0 additions & 6 deletions tools/package-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,3 @@ ln -sf knowledge bin/gptscript-go-tool

cd ..
sed -e 's!github.com/gptscript-ai/knowledge!./knowledge-tool!g' -e 's/@main//g' -i index.yaml

curl https://raw.githubusercontent.com/scheib/chromium-latest-linux/4f4e9b85ea02a109e071452de936389cc2fd7376/update.sh | bash -
if [ -e chrome ]; then
rm -rf chrome
fi
mv */chrome-linux chrome

0 comments on commit 2eaca44

Please sign in to comment.