Skip to content

Commit f1e0ac1

Browse files
committed
Update
1 parent 5e29eb0 commit f1e0ac1

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Ignore generated files
2+
**/*.pyc

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ WORKDIR /app
5151
COPY --from=environment /app .
5252
COPY . FN-Basic-Services
5353

54+
# Set env variables
55+
ENV PYTHONDONTWRITEBYTECODE 1
56+
ENV PYTHONUNBUFFERED 1
57+
5458
# Enable venv
5559
ENV PATH="/app/poetry-venv/bin:$PATH"
5660

main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
from fastapi.openapi.utils import get_openapi
33
from 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
66
import yaml
7+
from injector import logger
78

89

9-
logger = create_log()
10+
# logger = create_log()
11+
1012
app = FastAPI(
1113
title="FastAPI Basic Docker with k8s Service",
1214
description="FastAPI Basic Docker with k8s Service",

0 commit comments

Comments
 (0)