Upload 2 files
Browse files- Dockerfile +1 -0
- README.md +27 -10
Dockerfile
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
FROM ghcr.io/fuwei99/new-api-docker:latest
|
README.md
CHANGED
|
@@ -1,10 +1,27 @@
|
|
| 1 |
-
---
|
| 2 |
-
title: New
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo: green
|
| 6 |
-
sdk: docker
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Custom New-API Instance
|
| 3 |
+
emoji: π
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: green
|
| 6 |
+
sdk: docker
|
| 7 |
+
app_port: 3000
|
| 8 |
+
license: apache-2.0
|
| 9 |
+
---
|
| 10 |
+
|
| 11 |
+
# Custom New-API Instance
|
| 12 |
+
|
| 13 |
+
This Hugging Face Space runs a custom instance of the `new-api` application using a pre-built Docker image from the GitHub Container Registry.
|
| 14 |
+
|
| 15 |
+
## π How it works
|
| 16 |
+
|
| 17 |
+
This Space is configured with `sdk: docker` in its metadata. The `Dockerfile` in this repository simply uses the `FROM` instruction to pull the public image `ghcr.io/fuwei99/new-api-docker:latest`.
|
| 18 |
+
|
| 19 |
+
Hugging Face Spaces automatically builds and runs this container, and exposes the application on port 3000 as specified by `app_port: 3000`.
|
| 20 |
+
|
| 21 |
+
## π οΈ Configuration
|
| 22 |
+
|
| 23 |
+
- **Image:** `ghcr.io/fuwei99/new-api-docker:latest`
|
| 24 |
+
- **App Port:** `3000`
|
| 25 |
+
- **SDK:** `docker`
|
| 26 |
+
|
| 27 |
+
No further configuration is needed to deploy this Space.
|