mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-25 06:05:37 +03:00
freegpt-webui
This commit is contained in:
parent
6ac7dcb2db
commit
188f6a3089
28
linux/ecosystem/freegpt-webui/Dockerfile
Normal file
28
linux/ecosystem/freegpt-webui/Dockerfile
Normal file
@ -0,0 +1,28 @@
|
||||
FROM epicmorg/python:3.10-develop AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN git clone https://github.com/Em1tSan/freegpt-webui-ru.git /app &&
|
||||
rm -rfv /app/.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 /app/requirements-docker.txt
|
||||
|
||||
# Production stage
|
||||
FROM epicmorg/python:3.10 AS production
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY --from=build /root/.local /root/.local
|
||||
|
||||
COPY --from=build /app /app
|
||||
|
||||
#RUN git clone https://github.com/Em1tSan/freegpt-webui-ru.git /app &&
|
||||
# rm -rfv /app/.git
|
||||
|
||||
ENV PATH=/root/.local/bin:$PATH
|
||||
|
||||
EXPOSE 1338
|
||||
|
||||
CMD ["python3", "./run.py"]
|
19
linux/ecosystem/freegpt-webui/Makefile
Normal file
19
linux/ecosystem/freegpt-webui/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
|
6
linux/ecosystem/freegpt-webui/docker-compose.yml
Normal file
6
linux/ecosystem/freegpt-webui/docker-compose.yml
Normal file
@ -0,0 +1,6 @@
|
||||
version: '3.9'
|
||||
services:
|
||||
app:
|
||||
image: "epicmorg/freegpt-webui:latest"
|
||||
build:
|
||||
context: .
|
Loading…
Reference in New Issue
Block a user