timigogo commited on
Commit
b5f2f81
Β·
verified Β·
1 Parent(s): 14f4435

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -0
  2. 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 Api
3
- emoji: ⚑
4
- colorFrom: yellow
5
- colorTo: green
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: 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.