Shiny_Deploy / README.md
joseph-data's picture
sanity checks
1ca387d unverified
metadata
title: Shiny_Deploy
emoji: 🌍
colorFrom: yellow
colorTo: indigo
sdk: docker
pinned: false
license: apache-2.0
short_description: here I test uv deployment on multi-step process

Shiny + Docker (uv) quickstart

A tiny Shiny for Python app packaged with a multi-stage Docker build using uv. Designed as a minimal end-to-end example for local runs and container deploys..

What is inside

  • app.py: a simple Shiny slider demo
  • Dockerfile: multi-stage build with uv and a slim runtime image
  • pyproject.toml + uv.lock: pinned Python deps

Local run (uv)

uv sync --frozen
uv run shiny run app.py --host 0.0.0.0 --port 7860

Open http://localhost:7860.

Docker build and run

docker build -t shiny-docker .
docker run --rm -p 7860:7860 shiny-docker

Open http://localhost:7860.

Deploy notes (Hugging Face Spaces)

  • Container port: 7860
  • Entrypoint: shiny run app.py --host 0.0.0.0 --port 7860
  • The Dockerfile already exposes 7860

Customize

  • Edit UI and server logic in app.py
  • Add deps in pyproject.toml, then run uv sync