Files
email_service/Dockerfile
2026-01-19 02:20:50 -07:00

21 lines
501 B
Docker

FROM python:3.11-slim
# Set a working directory
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Environment variables (provided as requested)
ENV email=contact.dheerajgajula@gmail.com
ENV apppassword=astkbadcyjwbwkrq
ENV receipt_email=dheerajgajula.cse@gmail.com
# Expose port 9999 and run the FastAPI app with uvicorn
EXPOSE 9999
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "9999"]