Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 686 Bytes

README.md

File metadata and controls

40 lines (28 loc) · 686 Bytes

Faithful app: Python

Run the app interactively:

# Change directory
cd py-shiny/app

# Install dependencies
pip install -r requirements.txt

# Run the app, visit http://localhost:8080
shiny run --reload --port 8080

Pull and run Docker image:

docker pull ghcr.io/h10y/faithful/py-shiny:latest
docker run -p 8080:3838 ghcr.io/h10y/faithful/py-shiny:latest

Containerized version:

# Change directory
cd py-shiny

# If on MacOS X, set this
export DOCKER_DEFAULT_PLATFORM=linux/amd64

# Specify tag
export TAG=faithful/py-shiny:latest

# Build image
docker build -t $TAG .

# Run image, visit http://localhost:8080
docker run --rm -p 8080:3838 $TAG