File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1+ # Ignore generated files
2+ ** /* .pyc
Original file line number Diff line number Diff line change @@ -51,6 +51,10 @@ WORKDIR /app
5151COPY --from=environment /app .
5252COPY . FN-Basic-Services
5353
54+ # Set env variables
55+ ENV PYTHONDONTWRITEBYTECODE 1
56+ ENV PYTHONUNBUFFERED 1
57+
5458# Enable venv
5559ENV PATH="/app/poetry-venv/bin:$PATH"
5660
Original file line number Diff line number Diff line change 22from fastapi .openapi .utils import get_openapi
33from starlette .middleware .cors import CORSMiddleware
44# from controller import db_controller
5- from config .log_config import create_log
5+ # from config.log_config import create_log
66import yaml
7+ from injector import logger
78
89
9- logger = create_log ()
10+ # logger = create_log()
11+
1012app = FastAPI (
1113 title = "FastAPI Basic Docker with k8s Service" ,
1214 description = "FastAPI Basic Docker with k8s Service" ,
You can’t perform that action at this time.
0 commit comments