2023-04-06 21:12:49 +02:00
|
|
|
FROM python:3.10
|
|
|
|
|
|
|
|
WORKDIR /srv
|
|
|
|
COPY ./requirements.txt .
|
|
|
|
|
2023-04-07 17:58:26 +02:00
|
|
|
RUN python3 -m venv venv && . venv/bin/activate
|
|
|
|
RUN python3 -m pip install --no-cache-dir -r requirements.txt --upgrade pip
|
2023-04-06 21:12:49 +02:00
|
|
|
|
|
|
|
COPY ./app.py /srv/app.py
|
2023-05-24 17:34:12 +02:00
|
|
|
COPY ./api /srv/api
|
2023-05-25 23:24:14 +02:00
|
|
|
COPY ./bindings /srv/bindings
|
2023-04-06 21:12:49 +02:00
|
|
|
COPY ./static /srv/static
|
|
|
|
COPY ./templates /srv/templates
|
2023-05-31 21:43:56 +10:00
|
|
|
COPY ./web /srv/web
|
2023-04-06 21:12:49 +02:00
|
|
|
|
2023-04-07 18:02:01 +02:00
|
|
|
# COPY ./models /srv/models # Mounting model is more efficient
|
2023-04-07 18:32:27 +02:00
|
|
|
CMD ["python", "app.py", "--host", "0.0.0.0", "--port", "9600", "--db_path", "data/database.db"]
|