mindspark121's picture
Update Dockerfile
4adb072 verified
raw
history blame
370 Bytes
### Dockerfile ###
FROM python:3.9
# Set working directory
WORKDIR /app
# Copy required files
COPY requirements.txt ./
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files
COPY . .
# Expose the application port
EXPOSE 8000
# Command to run FastAPI app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]