1 parent
1121efecd5
commit
e9e9cfeb7f
12 files changed
+2
-1
No files matched your search
@@ -30,6 +30,7 @@ RUN groupadd --gid 10001 app \
|
||||
COPY --from=builder /opt/venv /opt/venv
|
||||
WORKDIR /app
|
||||
COPY app ./app
|
||||
COPY web ./web
|
||||
USER app
|
||||
EXPOSE 8000
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ from fastapi import Request
|
||||
from fastapi.responses import HTMLResponse
|
||||
from fastapi.templating import Jinja2Templates
|
||||
|
||||
templates = Jinja2Templates(directory=Path(__file__).parent / "templates")
|
||||
templates = Jinja2Templates(directory=Path(__file__).resolve().parent.parent / "web")
|
||||
|
||||
# Les données sont saisissables via l'API : échappement automatique Jinja2 + CSP stricte.
|
||||
CSP = (
|
||||
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Reference in new issue
Block a user