shvaq commited on
Commit
1d40e50
·
verified ·
1 Parent(s): 2f761e7

Upload 5 files

Browse files
Files changed (3) hide show
  1. Dockerfile +3 -3
  2. README.md +4 -4
  3. main.py +1 -1
Dockerfile CHANGED
@@ -18,9 +18,9 @@ COPY --chown=user . .
18
  USER user
19
 
20
  # Set environment variable for the port and expose it
21
- ARG APP_PORT=7423
22
  ENV APP_PORT=${APP_PORT}
23
- EXPOSE 7423
24
 
25
  # Command to run the application
26
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7423"]
 
18
  USER user
19
 
20
  # Set environment variable for the port and expose it
21
+ ARG APP_PORT=7023
22
  ENV APP_PORT=${APP_PORT}
23
+ EXPOSE 7023
24
 
25
  # Command to run the application
26
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7023"]
README.md CHANGED
@@ -1,11 +1,11 @@
1
  ---
2
- title: ga2-187e43
3
  emoji: 🚀
4
  colorFrom: blue
5
  colorTo: green
6
  sdk: docker
7
- app_port: 7423
8
  ---
9
 
10
- This Space demonstrates a containerized FastAPI app deployed with the Docker SDK on Hugging Face Spaces. deployment-ready-ga2-187e43
11
- It listens on port **7423** (configured via app_port) and expects a secret named `GA2_TOKEN_624F` to be set in the Space settings.
 
1
  ---
2
+ title: ga2-2bfc5e
3
  emoji: 🚀
4
  colorFrom: blue
5
  colorTo: green
6
  sdk: docker
7
+ app_port: 7023
8
  ---
9
 
10
+ This Space demonstrates a containerized FastAPI app deployed with the Docker SDK on Hugging Face Spaces. deployment-ready-ga2-2bfc5e
11
+ It listens on port **7023** (configured via app_port) and expects a secret named `GA2_TOKEN_98AF` to be set in the Space settings.
main.py CHANGED
@@ -3,7 +3,7 @@ import os
3
 
4
  app = FastAPI()
5
 
6
- TOKEN = os.environ.get("GA2_TOKEN_624F", None)
7
 
8
 
9
  @app.get("/")
 
3
 
4
  app = FastAPI()
5
 
6
+ TOKEN = os.environ.get("GA2_TOKEN_98AF", None)
7
 
8
 
9
  @app.get("/")