Commit a18803ad authored by BODERE's avatar BODERE
Browse files

fix: docker

parent 55c465ab
Pipeline #6489 passed with stage
in 44 seconds
......@@ -17,5 +17,6 @@ RUN poetry install --no-root --no-dev && \
COPY opensearx_ws /app/opensearx_ws
# Set envvar
ENV PYTHONPATH=/app/opensearx_ws
ENV PYTHONPATH="/app/opensearx_ws"
ENV MODULE_NAME="opensearx_ws.main"
ENV TEMPLATES_PATH="opensearx_ws/templates"
......@@ -21,7 +21,7 @@ class OpensearhEngine(BaseModel):
class Settings(BaseSettings):
context_path: str = ""
templates_path: str = "templates"
opensearch_engins: List[OpensearhEngine] = list()
opensearch_engines: List[OpensearhEngine] = list()
@lru_cache()
......
......@@ -73,7 +73,6 @@ async def granules(
# if format is `atom` -> return the response as an ATOM document using a jinja2 template
if response_fmt == OpensearchResponseFormat.atom:
print(os.path.abspath(settings.templates_path))
return j2_templates.TemplateResponse(
name="granules.atom",
context={"request": request, "response": merged_response},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment