svara-tts-webgpu / Dockerfile
shreyask's picture
Switch Space to Docker and serve built frontend
e90d181 verified
raw
history blame contribute delete
318 Bytes
FROM python:3.11-slim
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1
WORKDIR $HOME/app
COPY --chown=user . $HOME/app
EXPOSE 7860
CMD ["python", "-m", "http.server", "7860", "--directory", "/home/user/app"]