File size: 625 Bytes
ad474c9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# HDCSTORAGE runs on the standard library alone: no pip installs, no wheels,
# no build step.  The only bundled asset is the static embedding table the
# assistant's encoder projects into hypervectors.
FROM python:3.13-slim

ENV PYTHONUNBUFFERED=1 \
    PYTHONDONTWRITEBYTECODE=1

WORKDIR /app
COPY hdc ./hdc
COPY tests ./tests
COPY artifacts ./artifacts
COPY models ./models
COPY README.md ./README.md

# Spaces routes to app_port (7860); the CLI binds 127.0.0.1 by default, so the
# container has to be told to listen on all interfaces.
EXPOSE 7860
CMD ["python", "-m", "hdc", "web", "--host", "0.0.0.0", "--port", "7860"]