demo-falc-api / Dockerfile
SpiceyToad's picture
initial commit
7e405ea
raw
history blame
443 Bytes
# Use a lightweight PyTorch image with GPU support
FROM pytorch/pytorch:2.0.0-cuda11.7-cudnn8-runtime
# Set the working directory
WORKDIR /app
# Copy the application files into the container
COPY . /app
# Install required Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose the FastAPI port
EXPOSE 7860
# Command to run the FastAPI application
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]