ohmyapi Claude Opus 4.6 (1M context) commited on
Commit
115e31e
·
1 Parent(s): bbc9b9b

fix: add root Dockerfile and HF Space metadata for deployment

Browse files

- Create Dockerfile (port 7860) from Dockerfile.api for HF Spaces
- Add YAML front matter to README.md for HF Space config

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

Files changed (2) hide show
  1. Dockerfile +16 -0
  2. README.md +9 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.12-slim
2
+
3
+ WORKDIR /app
4
+
5
+ COPY requirements-api.txt .
6
+ RUN pip install --no-cache-dir -r requirements-api.txt
7
+
8
+ COPY outlook2api/ outlook2api/
9
+ COPY pyproject.toml .
10
+
11
+ RUN mkdir -p /tmp/data
12
+
13
+ ENV DATABASE_URL=sqlite+aiosqlite:////tmp/data/outlook2api.db
14
+ ENV OUTLOOK2API_PORT=7860
15
+
16
+ CMD ["uvicorn", "outlook2api.app:app", "--host", "0.0.0.0", "--port", "7860"]
README.md CHANGED
@@ -1,3 +1,12 @@
 
 
 
 
 
 
 
 
 
1
  # Outlook2API
2
 
3
  Mail.tm-compatible REST API for Outlook/Hotmail/Live accounts with admin panel and batch account registration.
 
1
+ ---
2
+ title: Outlook2API
3
+ emoji: 📧
4
+ colorFrom: orange
5
+ colorTo: red
6
+ sdk: docker
7
+ app_port: 7860
8
+ ---
9
+
10
  # Outlook2API
11
 
12
  Mail.tm-compatible REST API for Outlook/Hotmail/Live accounts with admin panel and batch account registration.