Implement Contact Form with Python FastAPI backend and mailcow SMTP integration

This commit is contained in:
Wind
2026-02-15 06:16:52 +09:00
parent 7e5f452449
commit 998d733eb5
6 changed files with 241 additions and 6 deletions

15
Dockerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM python:3.11-slim
WORKDIR /app
# 필요한 패키지 설치
RUN pip install --no-cache-dir fastapi uvicorn pydantic pydantic[email]
# 앱 파일 복사
COPY mail_contact.py .
# 포트 8001 노출
EXPOSE 8001
# 앱 실행
CMD ["python", "mail_contact.py"]