Portal live on Dokploy: ODBC Kerberos library and India time in the image

Dockerfile installs libgssapi-krb5-2 (ODBC Driver 18 could not load
without it) and runs on TZ=Asia/Kolkata with tzdata (the server is UTC).
Context.md: how the Portal was deployed (Drop zip, SQL login, DB host).
71 test files, 1224 tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
ManikandanandClaude Opus 5.5 committed 2026-10-27 16:03:44 +05:30
1 parent c049cece23
commit 83a0cf65ae
3 files changed
+64 -8

No files matched your search

+5 -3
View File
@@ -4,7 +4,8 @@
# and PORTAL_URLS in Dokploy's environment — never in Git (.env.example).
FROM python:3.13-slim-bookworm
# Microsoft ODBC Driver 18 for SQL Server, for pyodbc.
# Microsoft ODBC Driver 18 for SQL Server, for pyodbc. libgssapi-krb5-2 by
# name: the driver needs it, and autoremove took it with curl otherwise.
RUN apt-get update \
&& apt-get install -y --no-install-recommends curl gnupg ca-certificates \
&& curl -fsSL https://packages.microsoft.com/keys/microsoft.asc \
@@ -12,7 +13,7 @@ RUN apt-get update \
&& curl -fsSL https://packages.microsoft.com/config/debian/12/prod.list \
-o /etc/apt/sources.list.d/mssql-release.list \
&& apt-get update \
&& ACCEPT_EULA=Y apt-get install -y --no-install-recommends msodbcsql18 \
&& ACCEPT_EULA=Y apt-get install -y --no-install-recommends msodbcsql18 libgssapi-krb5-2 tzdata \
&& apt-get purge -y curl gnupg && apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/*
@@ -24,7 +25,8 @@ COPY web ./web
RUN useradd --create-home portal
USER portal
ENV PORTAL_SERVER=1 PYTHONUNBUFFERED=1
# India time, like the bot's rows: Sign-ins and "today" in IST, not UTC.
ENV PORTAL_SERVER=1 PYTHONUNBUFFERED=1 TZ=Asia/Kolkata
EXPOSE 8000
CMD ["python", "-m", "uvicorn", "web.app:app", "--host", "0.0.0.0", \
"--port", "8000", "--proxy-headers", "--forwarded-allow-ips", "*"]