0.2.1 add Dockerfile proper
This commit is contained in:
parent
6f67d125af
commit
6ba2cf039f
2 changed files with 18 additions and 1 deletions
17
Dockerfile
17
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"]
|
||||||
|
|
@ -19,7 +19,7 @@ from sqlalchemy import func, select, create_engine
|
||||||
from sqlalchemy.exc import ProgrammingError
|
from sqlalchemy.exc import ProgrammingError
|
||||||
import warnings
|
import warnings
|
||||||
|
|
||||||
__version__ = "0.2.0"
|
__version__ = "0.2.1"
|
||||||
|
|
||||||
APP_BASE_DIR = os.path.dirname(os.path.dirname(__file__))
|
APP_BASE_DIR = os.path.dirname(os.path.dirname(__file__))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue