diff --git a/Dockerfile b/Dockerfile index 2333e02..2639b2d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.10.12 +FROM python:3.10.12-slim WORKDIR /app/ COPY ./ /app/ diff --git a/lambda_function.py b/lambda_function.py index 1a19ab9..38406d7 100644 --- a/lambda_function.py +++ b/lambda_function.py @@ -1,7 +1,7 @@ import json from model.req_models import * -def lambda_handler(event, context): +async def lambda_handler(event, context): body = json.loads(event['body']) function_name = body['function'] @@ -26,7 +26,7 @@ def lambda_handler(event, context): 'body': result } -def auth_controller(user_info: UserInfo): +async def auth_controller(user_info: UserInfo): """ 현재 정상 이용 가능합니다. """ @@ -34,7 +34,7 @@ def auth_controller(user_info: UserInfo): result = get_auth_token(user_info) return result -def smart_campus_controller(smart_campus_req: SmartCampusReq): +async def smart_campus_controller(smart_campus_req: SmartCampusReq): """ 현재 정상 이용 가능합니다. """ @@ -42,7 +42,7 @@ def smart_campus_controller(smart_campus_req: SmartCampusReq): result = smart_campus_crawling(smart_campus_req.token, smart_campus_req.student_id) return result -def fun_system_controller(): +async def fun_system_controller(): """ 현재 정상 이용 가능합니다. """ @@ -50,7 +50,7 @@ def fun_system_controller(): result = fun_system_crawling() return result -def ssu_catch_controller(): +async def ssu_catch_controller(): """ 현재 정상 이용 가능합니다. """ @@ -58,7 +58,7 @@ def ssu_catch_controller(): result = ssu_catch_crawling() return result -def computer_department_controller(): +async def computer_department_controller(): """ 현재 정상 이용 가능합니다. """