Spaces:
Building
Building
# 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"] |