chore: set working directory in Dockerfile, add newline to config warning
This commit is contained in:
parent
9afd133066
commit
7a2249cb1c
2 changed files with 3 additions and 1 deletions
|
|
@ -26,6 +26,8 @@ ENV PYTHONPATH="/app"
|
||||||
|
|
||||||
EXPOSE 8081
|
EXPOSE 8081
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
ENTRYPOINT ["app/.venv/bin/python"]
|
ENTRYPOINT ["app/.venv/bin/python"]
|
||||||
|
|
||||||
CMD ["/app/app/main.py"]
|
CMD ["/app/app/main.py"]
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ class Settings(BaseSettings):
|
||||||
data = yaml.safe_load(fh) or {}
|
data = yaml.safe_load(fh) or {}
|
||||||
else:
|
else:
|
||||||
import sys
|
import sys
|
||||||
sys.stderr.write(f"Warning: Config file {p} not found.")
|
sys.stderr.write(f"Warning: Config file {p} not found.\n")
|
||||||
return cls(**data)
|
return cls(**data)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue