Skip to content
Snippets Groups Projects
Commit 68aa1303 authored by Benedikt Wetzel's avatar Benedikt Wetzel
Browse files

Add execution instructions and Dockerfile

parent d0ea7695
No related branches found
No related tags found
4 merge requests!159Re-implementation of Theodolite with Kotlin/Quarkus,!157Update Graal Image in CI pipeline,!96Handle shutdown,!83WIP: Re-implementation of Theodolite with Kotlin/Quarkus
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.7
COPY ./app /app
COPY requirements.txt requirements.txt
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
\ No newline at end of file
# Slope Evaluator
## Execution
For development:
```sh
uvicorn main:app --reload
```
Build the docker image:
```sh
docker build . -t theodolite-evaluator
```
Run the Docker image:
```sh
docker run -p 80:80 -e PORT="9999" theodolite-evaluator
```
## Configuration
You can set the `HOST` and the `PORT` (and a lot of more parameters) via environment variablen.
For more information see [here](https://github.com/tiangolo/uvicorn-gunicorn-fastapi-docker#advanced-usage).
......@@ -42,3 +42,5 @@ async def evaluate_slope(request: Request):
data = json.loads(await request.body())
logger.info("Request received")
return execute(data['total_lag'], data['threshold'],data['warmup'])
logger.info("Slope evaluator is online")
\ No newline at end of file
fastapi==0.55.1
scikit-learn==0.20.3
pandas==1.0.3
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment