Upload 2 files
Browse files- Dockerfile +20 -0
- README.md +6 -7
Dockerfile
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM hythzx/g4f:latest
|
| 2 |
+
|
| 3 |
+
RUN mkdir -p har_and_cookies && \
|
| 4 |
+
chmod 777 har_and_cookies && \
|
| 5 |
+
mkdir -p /.g4f && \
|
| 6 |
+
chmod 777 /.g4f && \
|
| 7 |
+
mkdir -p ./generated_media && \
|
| 8 |
+
chmod 777 ./generated_media
|
| 9 |
+
|
| 10 |
+
# 安装必要工具、ffmpeg 和 Google Chrome
|
| 11 |
+
RUN apt-get update && \
|
| 12 |
+
apt-get install -y wget gnupg2 ca-certificates ffmpeg && \
|
| 13 |
+
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | gpg --dearmor -o /usr/share/keyrings/googlechrome-linux-keyring.gpg && \
|
| 14 |
+
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/googlechrome-linux-keyring.gpg] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list && \
|
| 15 |
+
apt-get update && \
|
| 16 |
+
apt-get install -y google-chrome-stable && \
|
| 17 |
+
rm -rf /var/lib/apt/lists/*
|
| 18 |
+
|
| 19 |
+
RUN google-chrome-stable --version
|
| 20 |
+
|
README.md
CHANGED
|
@@ -1,10 +1,9 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: gpt4free
|
| 3 |
+
emoji: 😻
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: yellow
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
+
app_port: 1337
|
| 9 |
+
---
|
|
|