Spaces:
Runtime error
Runtime error
Commit ·
29909d6
1
Parent(s): 725b40f
fix(deploy): ship .env.vps and .env.hfspace inside the image
Browse filesThe deploy log showed `profile=vps | inference=960px max_streams=50`
even though .env.vps sets 768 / 4 — the Dockerfile only copied app/,
scripts/, docs/, and run.sh, so the profile overlay files were absent
inside the container. The loader fell through to hard-coded defaults
silently, with no warning at the surface.
Copy both committed profile overlays at the same layer as the rest of
the source. Container can now flip behaviour through CAKRA_PROFILE
alone, no env-file gymnastics required.
- Dockerfile +4 -0
Dockerfile
CHANGED
|
@@ -44,6 +44,10 @@ COPY app ./app
|
|
| 44 |
COPY scripts ./scripts
|
| 45 |
COPY docs ./docs
|
| 46 |
COPY run.sh ./
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
# Ensure run.sh is executable (git mode bits are sometimes lost during
|
| 49 |
# Hugging Face Spaces sync).
|
|
|
|
| 44 |
COPY scripts ./scripts
|
| 45 |
COPY docs ./docs
|
| 46 |
COPY run.sh ./
|
| 47 |
+
# Profile overlays — loaded by app/config.py when CAKRA_PROFILE matches
|
| 48 |
+
# the filename suffix. Without these the deploy would silently fall back
|
| 49 |
+
# to the bare defaults even if `CAKRA_PROFILE=vps` is set in the env.
|
| 50 |
+
COPY .env.hfspace .env.vps ./
|
| 51 |
|
| 52 |
# Ensure run.sh is executable (git mode bits are sometimes lost during
|
| 53 |
# Hugging Face Spaces sync).
|