Implement Contact Form with Python FastAPI backend and mailcow SMTP integration
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user