my-ai-space2 / Dockerfile
broadfield-dev's picture
Initial Space setup of broadfield-dev/my-ai-space2 via Builder
fb19138 verified
raw
history blame contribute delete
405 Bytes
### Base image for Hugging Face transformer models
FROM huggingface/transformers:4.10.2
### Set the working directory to /app
WORKDIR /app
### Copy the requirements.txt file
COPY requirements.txt .
### Install the dependencies
RUN pip install -r requirements.txt
### Collect static files
COPY . .
### Make port 8000 available to the world
EXPOSE 8000
### Run the Gradio app
CMD ["python", "app.py"]