Spaces:
Sleeping
Sleeping
Deploy encrypted Customer AI boundary 757e2b02cf4b7a10d53bf263e4647e626b529aa9
Browse files- Dockerfile +26 -0
- README.md +3 -4
- requirements.txt +0 -5
- runtime.bundle.enc +0 -0
Dockerfile
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM node:22-bookworm-slim
|
| 2 |
+
|
| 3 |
+
ENV PYTHONDONTWRITEBYTECODE=1 \
|
| 4 |
+
PYTHONUNBUFFERED=1 \
|
| 5 |
+
PIP_DISABLE_PIP_VERSION_CHECK=1
|
| 6 |
+
|
| 7 |
+
RUN apt-get update \
|
| 8 |
+
&& apt-get install -y --no-install-recommends python3 python3-venv ca-certificates \
|
| 9 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
+
|
| 11 |
+
WORKDIR /app
|
| 12 |
+
RUN python3 -m venv /opt/venv
|
| 13 |
+
ENV PATH="/opt/venv/bin:$PATH"
|
| 14 |
+
|
| 15 |
+
COPY requirements.txt /app/requirements.txt
|
| 16 |
+
RUN pip install --no-cache-dir -r /app/requirements.txt
|
| 17 |
+
|
| 18 |
+
COPY bootstrap.py runtime.bundle.enc /app/
|
| 19 |
+
|
| 20 |
+
RUN groupadd --system astera \
|
| 21 |
+
&& useradd --system --gid astera --home-dir /app --shell /usr/sbin/nologin astera \
|
| 22 |
+
&& chown -R astera:astera /app
|
| 23 |
+
|
| 24 |
+
USER astera
|
| 25 |
+
EXPOSE 7860
|
| 26 |
+
CMD ["python", "bootstrap.py"]
|
README.md
CHANGED
|
@@ -3,12 +3,11 @@ title: Astera Customer AI Public API
|
|
| 3 |
emoji: ✨
|
| 4 |
colorFrom: gray
|
| 5 |
colorTo: blue
|
| 6 |
-
sdk:
|
| 7 |
-
|
| 8 |
-
app_file: bootstrap.py
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
# Astera Customer AI Public API
|
| 13 |
|
| 14 |
-
|
|
|
|
| 3 |
emoji: ✨
|
| 4 |
colorFrom: gray
|
| 5 |
colorTo: blue
|
| 6 |
+
sdk: docker
|
| 7 |
+
app_port: 7860
|
|
|
|
| 8 |
pinned: false
|
| 9 |
---
|
| 10 |
|
| 11 |
# Astera Customer AI Public API
|
| 12 |
|
| 13 |
+
Thin synchronous API boundary for the Astera official website. The private runtime is deployed only as an encrypted bundle.
|
requirements.txt
CHANGED
|
@@ -1,11 +1,6 @@
|
|
| 1 |
-
gradio==6.5.1
|
| 2 |
fastapi==0.128.2
|
| 3 |
pydantic==2.12.5
|
| 4 |
uvicorn==0.48.0
|
| 5 |
httpx>=0.28,<1
|
| 6 |
huggingface_hub==1.16.1
|
| 7 |
-
spaces>=0.41,<1
|
| 8 |
-
transformers>=4.57,<6
|
| 9 |
-
safetensors>=0.5,<1
|
| 10 |
-
torch>=2.8,<3
|
| 11 |
cryptography>=45,<47
|
|
|
|
|
|
|
| 1 |
fastapi==0.128.2
|
| 2 |
pydantic==2.12.5
|
| 3 |
uvicorn==0.48.0
|
| 4 |
httpx>=0.28,<1
|
| 5 |
huggingface_hub==1.16.1
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
cryptography>=45,<47
|
runtime.bundle.enc
CHANGED
|
The diff for this file is too large to render.
See raw diff
|
|
|