mirror of
https://github.com/won-ktds/smarketing-backend.git
synced 2025-12-06 07:06:24 +00:00
feat: init
This commit is contained in:
parent
885fcf0977
commit
b7c1f89269
2
smarketing-ai/.gitignore
vendored
Normal file
2
smarketing-ai/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
.idea
|
||||||
|
.env
|
||||||
25
smarketing-ai/Dockerfile
Normal file
25
smarketing-ai/Dockerfile
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
# Dockerfile
|
||||||
|
FROM python:3.11-slim
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# 시스템 패키지 설치
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
fonts-dejavu-core \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Python 의존성 설치
|
||||||
|
COPY requirements.txt .
|
||||||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
# 애플리케이션 코드 복사
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
# 업로드 디렉토리 생성
|
||||||
|
RUN mkdir -p uploads/temp templates/poster_templates
|
||||||
|
|
||||||
|
# 포트 노출
|
||||||
|
EXPOSE 5000
|
||||||
|
|
||||||
|
# 애플리케이션 실행
|
||||||
|
CMD ["python", "app.py"]
|
||||||
8
smarketing-ai/requirements.txt
Normal file
8
smarketing-ai/requirements.txt
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
Flask==3.0.0
|
||||||
|
Flask-CORS==4.0.0
|
||||||
|
Pillow>=9.0.0
|
||||||
|
requests==2.31.0
|
||||||
|
anthropic==0.8.1
|
||||||
|
openai==1.6.1
|
||||||
|
python-dotenv==1.0.0
|
||||||
|
Werkzeug==3.0.1
|
||||||
Loading…
x
Reference in New Issue
Block a user