added redis, added convert function

also fixed logs, split code into multiple files
This commit is contained in:
2026-01-28 10:39:57 +03:00
parent 23e8b71776
commit 8cff37ce4a
7 changed files with 156 additions and 26 deletions

View File

@@ -1,12 +1,12 @@
FROM ubuntu:22.04
# Install openbabel dependencies
# Install openbabel and python
RUN apt-get update \
&& apt-get install --yes --quiet --no-install-recommends \
openbabel \
python3 \
python3-pip \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
&& apt-get install --yes --quiet --no-install-recommends \
openbabel \
python3 \
python3-pip \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
WORKDIR /var/local
@@ -17,4 +17,4 @@ RUN /usr/bin/python3 -m pip install --no-cache-dir -r requirements.txt
COPY src .
CMD fastapi run app.py --port ${PORT}
CMD uvicorn app:app --host 0.0.0.0 --port ${PORT} --log-level warning