2023-04-06 19:12:49 +00:00
|
|
|
FROM python:3.10
|
|
|
|
|
|
|
|
WORKDIR /srv
|
|
|
|
COPY ./requirements.txt .
|
|
|
|
|
2023-04-07 15:58:26 +00: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 19:12:49 +00:00
|
|
|
|
|
|
|
COPY ./app.py /srv/app.py
|
2023-04-09 11:46:04 +00:00
|
|
|
COPY ./db.py /srv/db.py
|
2023-04-13 20:54:04 +00:00
|
|
|
COPY ./config.py /srv/config.py
|
2023-04-06 19:12:49 +00:00
|
|
|
COPY ./static /srv/static
|
|
|
|
COPY ./templates /srv/templates
|
|
|
|
|
2023-04-07 16:02:01 +00:00
|
|
|
# COPY ./models /srv/models # Mounting model is more efficient
|
2023-04-07 16:32:27 +00:00
|
|
|
CMD ["python", "app.py", "--host", "0.0.0.0", "--port", "9600", "--db_path", "data/database.db"]
|