diff --git a/.gitignore b/.gitignore index 8a24d5ba47db848cbdbcd1397f798d90bc6b91e5..2d0dc4a384ad8504635418fb6c425acfabf9fe66 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ image_data/ config.json *.png *.jpg -test.py \ No newline at end of file +test.py +ssfshop/ \ No newline at end of file diff --git a/image_processing_app/Dockerfile b/image_processing_app/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..945b6a1a00863911218dd18347e1dc27bdaa6440 --- /dev/null +++ b/image_processing_app/Dockerfile @@ -0,0 +1,16 @@ +# 기본 이미지 설정 +FROM python:3.9-slim-buster + +# 작업 디렉토리 설정 +WORKDIR /app + +# 의존성 설치 +COPY requirements.txt requirements.txt +RUN pip install -r requirements.txt + +# 소스코드 복사 +COPY . . + +WORKDIR /app/src +# Flask 명령으로 앱 실행 +CMD [ "python", "-m" , "app", "run", "--host=0.0.0.0"] \ No newline at end of file diff --git a/image_processing_app/README.md b/image_processing_app/README.md new file mode 100644 index 0000000000000000000000000000000000000000..5f09de1b1f89710867f7a2ee8aabbd575907ab3c --- /dev/null +++ b/image_processing_app/README.md @@ -0,0 +1 @@ +# 이미지 자동 처리 \ No newline at end of file diff --git a/image_processing_app/requirements.txt b/image_processing_app/requirements.txt new file mode 100644 index 0000000000000000000000000000000000000000..5ae32b3b938e8136466f128e118ff9810290a0b8 --- /dev/null +++ b/image_processing_app/requirements.txt @@ -0,0 +1,6 @@ +onnxruntime +opencv-python +google-cloud-vision +python-dotenv +openai +retina-face \ No newline at end of file diff --git a/image_processing_app/src/app.py b/image_processing_app/src/app.py index 723b6aba3381d147d8100b309fd1be38bbb066ff..f84104e31ccfc479ff2d853823c5b830b894c1bf 100644 --- a/image_processing_app/src/app.py +++ b/image_processing_app/src/app.py @@ -5,4 +5,4 @@ app = Flask(__name__) app = create_router(app) if __name__ == '__main__': - app.run(debug=True) + app.run()