test_ing / Dockerfile
AyushS9020's picture
Upload 5 files
0f7e22b verified
raw
history blame
594 Bytes
# Use an official Python runtime as a parent image
FROM python:3.9-slim
# Install dependencies required by PyTorch and torchaudio
RUN apt-get update && apt-get install -y \
libgomp1 \
&& rm -rf /var/lib/apt/lists/*
# Set the working directory in the container
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Expose port 8000 to the outside world
EXPOSE 8000
# Run the FastAPI app using python app.py
CMD ["python", "app.py"]