initial commit
This commit is contained in:
20
Dockerfile
Normal file
20
Dockerfile
Normal file
@@ -0,0 +1,20 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user