From 6ba2cf039f657b025e117f61a1cea70c57f6b2fb Mon Sep 17 00:00:00 2001 From: Yusur Princeps Date: Wed, 8 Oct 2025 14:51:42 +0200 Subject: [PATCH] 0.2.1 add Dockerfile proper --- Dockerfile | 17 +++++++++++++++++ xefyl/__init__.py | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) 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/xefyl/__init__.py b/xefyl/__init__.py index 147c43c..f98b564 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.1" APP_BASE_DIR = os.path.dirname(os.path.dirname(__file__))