Skip to content

Commit

Permalink
💻 Code: 1. Upgrade ModelMerge version to 0.11.10
Browse files Browse the repository at this point in the history
2. Remove Google Search SDK, use RESTful API for Google search.

3. Use python:3.12-alpine to build a Docker image to reduce the image size.
  • Loading branch information
yym68686 committed Aug 24, 2024
1 parent a555e41 commit 61ebdc1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
10 changes: 5 additions & 5 deletions Dockerfile.build
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM python:3.10.13 AS builder
FROM python:3.10-alpine AS builder
COPY ./requirements.txt /home
RUN pip install -r /home/requirements.txt
RUN pip install --no-cache-dir -r /home/requirements.txt

FROM python:3.10.13-slim-bullseye
FROM python:3.10-alpine
EXPOSE 8080
WORKDIR /home
COPY --from=builder /usr/local/lib/python3.10/site-packages /usr/local/lib/python3.10/site-packages
COPY ./setup.sh /home
RUN apt-get update && apt-get install -y --no-install-recommends git \
&& rm -rf /var/lib/apt/lists/* /tmp/*
RUN apk add --no-cache git \
&& rm -rf /tmp/*
ENTRYPOINT ["/home/setup.sh"]
2 changes: 1 addition & 1 deletion ModelMerge
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ pdfminer.six
fake-useragent
beautifulsoup4
tiktoken==0.6.0
duckduckgo-search==5.3.1
google-api-python-client==2.128.0
duckduckgo-search==5.3.1
2 changes: 1 addition & 1 deletion setup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
set -eu
rm -rf /home/ChatGPT-Telegram-Bot
git clone --recurse-submodules --depth 1 -b main --quiet https://github.com/yym68686/ChatGPT-Telegram-Bot.git
Expand Down

0 comments on commit 61ebdc1

Please sign in to comment.