diff --git a/Dockerfile b/Dockerfile index e69de29..8db9484 100644 --- a/Dockerfile +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM python:3.13-slim + +WORKDIR /usr/src/app + +RUN apt-get update && apt-get install -y git + +COPY xefyl xefyl +COPY pyproject.toml pyproject.toml +COPY .git .git +COPY .env.prod .env +COPY wordenizer wordenizer + +RUN git checkout v0.2.1 && pip install . + +EXPOSE 5000 + +CMD ["/usr/bin/env", "python", "-m", "flask", "--app", "xefyl", "run", "--host", "0.0.0.0"] diff --git a/pyproject.toml b/pyproject.toml index bb1d725..0accf16 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,8 +13,9 @@ dependencies = [ "Flask-WTF", "Pillow", "Pillow-Heif", - "psycopg2", - "alembic" + "psycopg2-binary", + "alembic", + "suou>=0.9.0" ] requires-python = ">=3.10" classifiers = [ @@ -30,4 +31,4 @@ dev = [ packages = ["xefyl"] [tool.setuptools.dynamic] -version = { attr = "xefyl.__version__" } \ No newline at end of file +version = { attr = "xefyl.__version__" } diff --git a/xefyl/__init__.py b/xefyl/__init__.py index 147c43c..08fb6f8 100644 --- a/xefyl/__init__.py +++ b/xefyl/__init__.py @@ -19,7 +19,7 @@ from sqlalchemy import func, select, create_engine from sqlalchemy.exc import ProgrammingError import warnings -__version__ = "0.2.0" +__version__ = "0.2.2" APP_BASE_DIR = os.path.dirname(os.path.dirname(__file__)) @@ -59,7 +59,6 @@ app.url_map.converters['video_ext'] = VideoExtConverter ## helpers - def paginated_query(q, n_per_page, argname="page"): if isinstance(argname, str) and not argname.isdigit(): n = int(request.args.get(argname, 1))