From 112ec2529db5b89d2186af60a0820dce388e3738 Mon Sep 17 00:00:00 2001
From: HyeonSeok Sang <henry914@ajou.ac.kr>
Date: Wed, 26 Jul 2023 08:48:37 +0900
Subject: [PATCH] =?UTF-8?q?=EC=9E=84=EC=8B=9C=EC=A0=81=20=EB=B3=80?=
 =?UTF-8?q?=EA=B2=BD.=20=EC=9C=A0=EC=9D=98=EB=AF=B8=ED=95=9C=20=EB=B3=80?=
 =?UTF-8?q?=EA=B2=BD=20=EC=82=AC=ED=95=AD=EC=9D=80=20=EC=97=86=EC=8A=B5?=
 =?UTF-8?q?=EB=8B=88=EB=8B=A4.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .gitignore                            |  3 ++-
 image_processing_app/Dockerfile       | 16 ++++++++++++++++
 image_processing_app/README.md        |  1 +
 image_processing_app/requirements.txt |  6 ++++++
 image_processing_app/src/app.py       |  2 +-
 5 files changed, 26 insertions(+), 2 deletions(-)
 create mode 100644 image_processing_app/Dockerfile
 create mode 100644 image_processing_app/README.md
 create mode 100644 image_processing_app/requirements.txt

diff --git a/.gitignore b/.gitignore
index 8a24d5b..2d0dc4a 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 0000000..945b6a1
--- /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 0000000..5f09de1
--- /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 0000000..5ae32b3
--- /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 723b6ab..f84104e 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()
-- 
GitLab