File size: 490 Bytes
706df25
4e6448d
706df25
4e6448d
 
706df25
4e6448d
706df25
 
4e6448d
706df25
 
4e6448d
706df25
 
4e6448d
706df25
 
4e6448d
706df25
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# syntax=docker/dockerfile:1.2

FROM continuumio/miniconda3:24.1.2-0

USER root
WORKDIR /app

# Copy all repository files into the image
COPY . /app

# Run the torchserve setup script that replicates the steps from the original torchserve Dockerfile
RUN chmod +x /app/torchserve_setup.sh && /app/torchserve_setup.sh

# Install your package in editable mode
RUN pip install -e .

# Expose port 7860 for Gradio on Hugging Face Spaces
EXPOSE 7860

# Run the Gradio app
CMD ["python", "app.py"]