mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-25 06:05:37 +03:00
FreeGPT WebUI + Endpoint (update)
This commit is contained in:
parent
7023802e61
commit
5f9f24ea92
69
.github/workflows/epicmorg.ecosysctem.freegpt.images.yml
vendored
Normal file
69
.github/workflows/epicmorg.ecosysctem.freegpt.images.yml
vendored
Normal file
@ -0,0 +1,69 @@
|
||||
name: EpicMorg EcoSystem Misc Images
|
||||
|
||||
on:
|
||||
# push:
|
||||
# branches:
|
||||
# - 'develop'
|
||||
schedule:
|
||||
- cron: '0 0 * * 2,4,6'
|
||||
|
||||
jobs:
|
||||
|
||||
##################################################################################
|
||||
|
||||
build-freegpt-webui-image:
|
||||
name: EpicMorg EcoSystem freegpt-webui Image
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Log into registry
|
||||
run: echo "${{ secrets.DOCKER_SERVER_KEY }}" | docker login -u "${{ secrets.DOCKER_SERVER_LOGIN }}" --password-stdin
|
||||
|
||||
- name: Test Make
|
||||
run: make
|
||||
|
||||
- name: Build and Deploy freegpt-webui 1.0
|
||||
run: cd linux/ecosystem/freegpt-webui/chat/1.0 && make build && make deploy
|
||||
|
||||
- name: Build and Deploy freegpt-webui 1.1
|
||||
run: cd linux/ecosystem/freegpt-webui/chat/1.1 && make build && make deploy
|
||||
|
||||
- name: Build and Deploy freegpt-webui 1.2
|
||||
run: cd linux/ecosystem/freegpt-webui/chat/1.2 && make build && make deploy
|
||||
|
||||
- name: Build and Deploy freegpt-webui 1.3
|
||||
run: cd linux/ecosystem/freegpt-webui/chat/1.3 && make build && make deploy
|
||||
|
||||
- name: Build and Deploy freegpt-webui 1.3.1
|
||||
run: cd linux/ecosystem/freegpt-webui/chat/1.3.1 && make build && make deploy
|
||||
|
||||
- name: Build and Deploy freegpt-webui 1.3.2
|
||||
run: cd linux/ecosystem/freegpt-webui/chat/1.3.2 && make build && make deploy
|
||||
|
||||
- name: Build and Deploy freegpt-webui 1.4
|
||||
run: cd linux/ecosystem/freegpt-webui/chat/1.4 && make build && make deploy
|
||||
|
||||
- name: Build and Deploy freegpt-webui latest
|
||||
run: cd linux/ecosystem/freegpt-webui/chat/latest && make build && make deploy
|
||||
|
||||
##################################################################################
|
||||
|
||||
- name: Build and Deploy freegpt-webui endpoint 1.3
|
||||
run: cd linux/ecosystem/freegpt-webui/endpoint/1.3 && make build && make deploy
|
||||
|
||||
- name: Build and Deploy freegpt-webui endpoint 1.3.1
|
||||
run: cd linux/ecosystem/freegpt-webui/endpoint/1.3.1 && make build && make deploy
|
||||
|
||||
- name: Build and Deploy freegpt-webui endpoint 1.3.2
|
||||
run: cd linux/ecosystem/freegpt-webui/endpoint/1.3.2 && make build && make deploy
|
||||
|
||||
- name: Build and Deploy freegpt-webui endpoint 1.4
|
||||
run: cd linux/ecosystem/freegpt-webui/endpoint/1.4 && make build && make deploy
|
||||
|
||||
- name: Build and Deploy freegpt-webui endpoint latest
|
||||
run: cd linux/ecosystem/freegpt-webui/endpoint/latest && make build && make deploy
|
||||
|
||||
##################################################################################
|
||||
- name: Cleanup
|
||||
run: make docker-clean
|
@ -165,39 +165,5 @@ jobs:
|
||||
|
||||
##################################################################################
|
||||
|
||||
build-freegpt-webui-image:
|
||||
name: EpicMorg EcoSystem freegpt-webui Image
|
||||
runs-on: ubuntu-20.04
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Log into registry
|
||||
run: echo "${{ secrets.DOCKER_SERVER_KEY }}" | docker login -u "${{ secrets.DOCKER_SERVER_LOGIN }}" --password-stdin
|
||||
|
||||
- name: Test Make
|
||||
run: make
|
||||
|
||||
- name: Build and Deploy freegpt-webui 1.0
|
||||
run: cd linux/ecosystem/freegpt-webui/1.0 && make build && make deploy
|
||||
|
||||
- name: Build and Deploy freegpt-webui 1.1
|
||||
run: cd linux/ecosystem/freegpt-webui/1.1 && make build && make deploy
|
||||
|
||||
- name: Build and Deploy freegpt-webui 1.2
|
||||
run: cd linux/ecosystem/freegpt-webui/1.2 && make build && make deploy
|
||||
|
||||
- name: Build and Deploy freegpt-webui 1.3
|
||||
run: cd linux/ecosystem/freegpt-webui/1.3 && make build && make deploy
|
||||
|
||||
- name: Build and Deploy freegpt-webui 1.3.1
|
||||
run: cd linux/ecosystem/freegpt-webui/1.3.1 && make build && make deploy
|
||||
|
||||
- name: Build and Deploy freegpt-webui 1.3.2
|
||||
run: cd linux/ecosystem/freegpt-webui/1.3.2 && make build && make deploy
|
||||
|
||||
- name: Build and Deploy freegpt-webui latest
|
||||
run: cd linux/ecosystem/freegpt-webui/latest && make build && make deploy
|
||||
|
||||
##################################################################################
|
||||
- name: Cleanup
|
||||
run: make docker-clean
|
||||
|
21
Makefile
21
Makefile
@ -403,13 +403,20 @@ ecosystem-nodejs-images:
|
||||
cd `pwd`/linux/ecosystem/nodejs/node20 && pwd && make build && make deploy
|
||||
|
||||
ecosystem-freegpt-webui-images:
|
||||
cd `pwd`/linux/ecosystem/freegpt-webui/1.0 && pwd && make build && make deploy
|
||||
cd `pwd`/linux/ecosystem/freegpt-webui/1.1 && pwd && make build && make deploy
|
||||
cd `pwd`/linux/ecosystem/freegpt-webui/1.2 && pwd && make build && make deploy
|
||||
cd `pwd`/linux/ecosystem/freegpt-webui/1.3 && pwd && make build && make deploy
|
||||
cd `pwd`/linux/ecosystem/freegpt-webui/1.3.1 && pwd && make build && make deploy
|
||||
cd `pwd`/linux/ecosystem/freegpt-webui/1.3.2 && pwd && make build && make deploy
|
||||
cd `pwd`/linux/ecosystem/freegpt-webui/latest && pwd && make build && make deploy
|
||||
cd `pwd`/linux/ecosystem/freegpt-webui/chat/1.0 && pwd && make build && make deploy
|
||||
cd `pwd`/linux/ecosystem/freegpt-webui/chat/1.1 && pwd && make build && make deploy
|
||||
cd `pwd`/linux/ecosystem/freegpt-webui/chat/1.2 && pwd && make build && make deploy
|
||||
cd `pwd`/linux/ecosystem/freegpt-webui/chat/1.3 && pwd && make build && make deploy
|
||||
cd `pwd`/linux/ecosystem/freegpt-webui/chat/1.3.1 && pwd && make build && make deploy
|
||||
cd `pwd`/linux/ecosystem/freegpt-webui/chat/1.3.2 && pwd && make build && make deploy
|
||||
cd `pwd`/linux/ecosystem/freegpt-webui/chat/1.4 && pwd && make build && make deploy
|
||||
cd `pwd`/linux/ecosystem/freegpt-webui/chat/latest && pwd && make build && make deploy
|
||||
|
||||
cd `pwd`/linux/ecosystem/freegpt-webui/endpoint/1.3 && pwd && make build && make deploy
|
||||
cd `pwd`/linux/ecosystem/freegpt-webui/endpoint/1.3.1 && pwd && make build && make deploy
|
||||
cd `pwd`/linux/ecosystem/freegpt-webui/endpoint/1.3.2 && pwd && make build && make deploy
|
||||
cd `pwd`/linux/ecosystem/freegpt-webui/endpoint/1.4 && pwd && make build && make deploy
|
||||
cd `pwd`/linux/ecosystem/freegpt-webui/endpoint/latest && pwd && make build && make deploy
|
||||
|
||||
|
||||
ecosystem-vk2discord-images:
|
||||
|
@ -5,6 +5,8 @@
|
||||
|
||||
## Ready docker-compose example
|
||||
|
||||
### Normal WebUI (All versions)
|
||||
|
||||
```yml
|
||||
version: "3.9"
|
||||
services:
|
||||
@ -16,3 +18,17 @@ services:
|
||||
ports:
|
||||
- 1338:1338
|
||||
```
|
||||
|
||||
### Endpoint API (v1.3+ only)
|
||||
|
||||
```yml
|
||||
version: "3.9"
|
||||
services:
|
||||
freegpt-webui:
|
||||
image: epicmorg/freegpt-webui:latest-endpoint # 1.3, 1.3.1, 1.3.2, 1.4, etc
|
||||
container_name: freegpt-webui
|
||||
hostname: freegpt-webui
|
||||
restart: always
|
||||
ports:
|
||||
- 1337:1337
|
||||
```
|
||||
|
62
linux/ecosystem/freegpt-webui/chat/1.4/Dockerfile
Normal file
62
linux/ecosystem/freegpt-webui/chat/1.4/Dockerfile
Normal file
@ -0,0 +1,62 @@
|
||||
##################################################################
|
||||
##################################################################
|
||||
##################################################################
|
||||
# Build stage
|
||||
##################################################################
|
||||
##################################################################
|
||||
##################################################################
|
||||
FROM epicmorg/python:3.10-develop AS build
|
||||
|
||||
ARG FREEGPT_VERSION=1.4
|
||||
|
||||
ENV FREEGPT_PATH=/app
|
||||
ENV FREEGPT_PORT=1338
|
||||
ENV FREEGTP_PY_BIN=/root/.local/bin
|
||||
ENV PATH=/root/.local/bin:$PATH
|
||||
|
||||
RUN git clone --depth 1 --branch ${FREEGPT_VERSION} https://github.com/Em1tSan/freegpt-webui-ru.git ${FREEGPT_PATH} && \
|
||||
rm -rfv ${FREEGPT_PATH}/.git
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
build-essential \
|
||||
libffi-dev cmake \
|
||||
libcurl4-openssl-dev && \
|
||||
pip3 install --user --no-cache-dir -r ${FREEGPT_PATH}/requirements-docker.txt
|
||||
|
||||
##################################################################
|
||||
##################################################################
|
||||
##################################################################
|
||||
# Production stage
|
||||
##################################################################
|
||||
##################################################################
|
||||
##################################################################
|
||||
FROM epicmorg/python:3.10 AS production
|
||||
|
||||
ENV FREEGPT_PATH=/app
|
||||
ENV FREEGPT_PORT=1338
|
||||
ENV FREEGTP_PY_BIN=/root/.local/bin
|
||||
ENV PATH=/root/.local/bin:$PATH
|
||||
|
||||
RUN mkdir -p ${FREEGTP_PY_BIN} ${FREEGPT_PATH}
|
||||
|
||||
##################################################################
|
||||
# Copy bins
|
||||
##################################################################
|
||||
COPY --from=build /root/.local /root/.local
|
||||
COPY --from=build /app /app
|
||||
|
||||
##################################################################
|
||||
# cleaninig up
|
||||
##################################################################
|
||||
RUN apt clean -y && \
|
||||
apt-get clean all && \
|
||||
apt autoclean -y && \
|
||||
rm -rfv /var/lib/apt/lists/* && \
|
||||
rm -rfv /var/cache/apt/archives/*.deb && \
|
||||
rm -rfv /tmp/*
|
||||
|
||||
WORKDIR ${FREEGPT_PATH}
|
||||
EXPOSE ${FREEGPT_PORT}
|
||||
|
||||
CMD ["python3", "./run.py"]
|
@ -0,0 +1,6 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/freegpt-webui:1.4"
|
||||
build:
|
||||
context: .
|
19
linux/ecosystem/freegpt-webui/chat/latest/Makefile
Normal file
19
linux/ecosystem/freegpt-webui/chat/latest/Makefile
Normal file
@ -0,0 +1,19 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
make build
|
||||
make deploy
|
||||
make clean
|
||||
|
||||
build:
|
||||
docker-compose build --compress --no-cache --progress plain
|
||||
|
||||
deploy:
|
||||
docker-compose push
|
||||
|
||||
clean:
|
||||
docker container prune -f
|
||||
docker image prune -f
|
||||
docker network prune -f
|
||||
docker volume prune -f
|
||||
docker system prune -af
|
11
linux/ecosystem/freegpt-webui/endpoint/1.3.1/Dockerfile
Normal file
11
linux/ecosystem/freegpt-webui/endpoint/1.3.1/Dockerfile
Normal file
@ -0,0 +1,11 @@
|
||||
##################################################################
|
||||
##################################################################
|
||||
##################################################################
|
||||
# Production stage
|
||||
##################################################################
|
||||
##################################################################
|
||||
##################################################################
|
||||
FROM epicmorg/freegpt-webui:1.3.1 AS production
|
||||
|
||||
ENV FREEGPT_PORT=1337
|
||||
CMD ["python3", "./endpoint.py"]
|
19
linux/ecosystem/freegpt-webui/endpoint/1.3.1/Makefile
Normal file
19
linux/ecosystem/freegpt-webui/endpoint/1.3.1/Makefile
Normal file
@ -0,0 +1,19 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
make build
|
||||
make deploy
|
||||
make clean
|
||||
|
||||
build:
|
||||
docker-compose build --compress --no-cache --progress plain
|
||||
|
||||
deploy:
|
||||
docker-compose push
|
||||
|
||||
clean:
|
||||
docker container prune -f
|
||||
docker image prune -f
|
||||
docker network prune -f
|
||||
docker volume prune -f
|
||||
docker system prune -af
|
@ -0,0 +1,6 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/freegpt-webui:1.3.1-endpoint"
|
||||
build:
|
||||
context: .
|
11
linux/ecosystem/freegpt-webui/endpoint/1.3.2/Dockerfile
Normal file
11
linux/ecosystem/freegpt-webui/endpoint/1.3.2/Dockerfile
Normal file
@ -0,0 +1,11 @@
|
||||
##################################################################
|
||||
##################################################################
|
||||
##################################################################
|
||||
# Production stage
|
||||
##################################################################
|
||||
##################################################################
|
||||
##################################################################
|
||||
FROM epicmorg/freegpt-webui:1.3.2 AS production
|
||||
|
||||
ENV FREEGPT_PORT=1337
|
||||
CMD ["python3", "./endpoint.py"]
|
19
linux/ecosystem/freegpt-webui/endpoint/1.3.2/Makefile
Normal file
19
linux/ecosystem/freegpt-webui/endpoint/1.3.2/Makefile
Normal file
@ -0,0 +1,19 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
make build
|
||||
make deploy
|
||||
make clean
|
||||
|
||||
build:
|
||||
docker-compose build --compress --no-cache --progress plain
|
||||
|
||||
deploy:
|
||||
docker-compose push
|
||||
|
||||
clean:
|
||||
docker container prune -f
|
||||
docker image prune -f
|
||||
docker network prune -f
|
||||
docker volume prune -f
|
||||
docker system prune -af
|
@ -0,0 +1,6 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/freegpt-webui:1.3.2-endpoint"
|
||||
build:
|
||||
context: .
|
11
linux/ecosystem/freegpt-webui/endpoint/1.3/Dockerfile
Normal file
11
linux/ecosystem/freegpt-webui/endpoint/1.3/Dockerfile
Normal file
@ -0,0 +1,11 @@
|
||||
##################################################################
|
||||
##################################################################
|
||||
##################################################################
|
||||
# Production stage
|
||||
##################################################################
|
||||
##################################################################
|
||||
##################################################################
|
||||
FROM epicmorg/freegpt-webui:1.3 AS production
|
||||
|
||||
ENV FREEGPT_PORT=1337
|
||||
CMD ["python3", "./endpoint.py"]
|
19
linux/ecosystem/freegpt-webui/endpoint/1.3/Makefile
Normal file
19
linux/ecosystem/freegpt-webui/endpoint/1.3/Makefile
Normal file
@ -0,0 +1,19 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
make build
|
||||
make deploy
|
||||
make clean
|
||||
|
||||
build:
|
||||
docker-compose build --compress --no-cache --progress plain
|
||||
|
||||
deploy:
|
||||
docker-compose push
|
||||
|
||||
clean:
|
||||
docker container prune -f
|
||||
docker image prune -f
|
||||
docker network prune -f
|
||||
docker volume prune -f
|
||||
docker system prune -af
|
@ -0,0 +1,6 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/freegpt-webui:1.3-endpoint"
|
||||
build:
|
||||
context: .
|
11
linux/ecosystem/freegpt-webui/endpoint/1.4/Dockerfile
Normal file
11
linux/ecosystem/freegpt-webui/endpoint/1.4/Dockerfile
Normal file
@ -0,0 +1,11 @@
|
||||
##################################################################
|
||||
##################################################################
|
||||
##################################################################
|
||||
# Production stage
|
||||
##################################################################
|
||||
##################################################################
|
||||
##################################################################
|
||||
FROM epicmorg/freegpt-webui:1.4 AS production
|
||||
|
||||
ENV FREEGPT_PORT=1337
|
||||
CMD ["python3", "./endpoint.py"]
|
19
linux/ecosystem/freegpt-webui/endpoint/1.4/Makefile
Normal file
19
linux/ecosystem/freegpt-webui/endpoint/1.4/Makefile
Normal file
@ -0,0 +1,19 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
make build
|
||||
make deploy
|
||||
make clean
|
||||
|
||||
build:
|
||||
docker-compose build --compress --no-cache --progress plain
|
||||
|
||||
deploy:
|
||||
docker-compose push
|
||||
|
||||
clean:
|
||||
docker container prune -f
|
||||
docker image prune -f
|
||||
docker network prune -f
|
||||
docker volume prune -f
|
||||
docker system prune -af
|
@ -0,0 +1,6 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/freegpt-webui:1.4-endpoint"
|
||||
build:
|
||||
context: .
|
11
linux/ecosystem/freegpt-webui/endpoint/latest/Dockerfile
Normal file
11
linux/ecosystem/freegpt-webui/endpoint/latest/Dockerfile
Normal file
@ -0,0 +1,11 @@
|
||||
##################################################################
|
||||
##################################################################
|
||||
##################################################################
|
||||
# Production stage
|
||||
##################################################################
|
||||
##################################################################
|
||||
##################################################################
|
||||
FROM epicmorg/freegpt-webui:latest AS production
|
||||
|
||||
ENV FREEGPT_PORT=1337
|
||||
CMD ["python3", "./endpoint.py"]
|
19
linux/ecosystem/freegpt-webui/endpoint/latest/Makefile
Normal file
19
linux/ecosystem/freegpt-webui/endpoint/latest/Makefile
Normal file
@ -0,0 +1,19 @@
|
||||
all: app
|
||||
|
||||
app:
|
||||
make build
|
||||
make deploy
|
||||
make clean
|
||||
|
||||
build:
|
||||
docker-compose build --compress --no-cache --progress plain
|
||||
|
||||
deploy:
|
||||
docker-compose push
|
||||
|
||||
clean:
|
||||
docker container prune -f
|
||||
docker image prune -f
|
||||
docker network prune -f
|
||||
docker volume prune -f
|
||||
docker system prune -af
|
@ -0,0 +1,6 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/freegpt-webui:latest-endpoint"
|
||||
build:
|
||||
context: .
|
Loading…
Reference in New Issue
Block a user