RoadSafety-OpenEnv / Dockerfile
Anoopsingh53's picture
Upload Dockerfile
d4f3db6 verified
Raw
History Blame Contribute Delete
352 Bytes
FROM python:3.10-slim
WORKDIR /app
# Copy dependencies
COPY requirements.txt .
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY . .
# Expose port for FastAPI OpenEnv Server
EXPOSE 7860
# Command to run the application
CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]