This project is a Streamlit-based statistical analysis tool. It is fully containerized using Docker for easy deployment and reproducibility.
- Multiple Python files (main entry:
frontend.py) - Uses a
.envfile for API keys and secrets (not included in the Docker image)
- Docker installed on your system
.envfile with required environment variables (API keys, etc.) in the project directory
Open a terminal in the StatisticalAnalyser directory and run:
docker build -t statistical-analyser .To run the app and make your .env variables available inside the container:
docker run -it --rm -p 8501:8501 --env-file .env statistical-analyser- The app will be available at http://localhost:8501
- Do not use
0.0.0.0in your browser; uselocalhostor127.0.0.1
- The
.envfile should be in the same directory as your Docker commands. - It is ignored by Docker (see
.dockerignore), so secrets are not included in the image. - Example
.env:API_KEY=your_api_key_here ANOTHER_SECRET=your_secret_here
- All Python files in the directory are copied into the container, so imports between them will work.
- If you add new dependencies, update
requirements.txtand rebuild the image.
- If you see
URL: http://0.0.0.0:8501in the logs, open http://localhost:8501 in your browser. - If you get errors about missing environment variables, check your
.envfile and that you are using--env-file .env.
For further help, contact the project maintainer.