Spaces:
Sleeping
Sleeping
File size: 771 Bytes
157ba12 191f3b0 157ba12 191f3b0 b6ea18a 191f3b0 b6ea18a 191f3b0 157ba12 191f3b0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
FROM python:3.10
ARG HF_TOKEN
ENV HF_TOKEN=${HF_TOKEN}
WORKDIR /app
# Install FFmpeg and other dependencies
RUN apt-get update
RUN apt-get install -y ffmpeg
RUN apt-get install -y prometheus-node-exporter
RUN apt-get clean
# 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
# Make port 7860 available to the world outside this container
EXPOSE 7860
# Prometheus Node Exporter metrics
EXPOSE 9100
# Prometheus Python app metrics
EXPOSE 8000
# Run app.py when the container launches
# CMD ["python", "app.py"]
# Run both the Node Exporter and the Gradio application
CMD ["sh", "-c", "prometheus-node-exporter & python app.py"] |