ajmel commited on
Commit
9574801
·
1 Parent(s): d3b5648

Move Dockerfile to root for HF compatibility

Browse files
Files changed (2) hide show
  1. Dockerfile +28 -0
  2. README.md +0 -1
Dockerfile ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.12-slim
2
+
3
+ # Install system utilities and FFmpeg video processing binaries
4
+ RUN apt-get update && apt-get install -y \
5
+ ffmpeg \
6
+ build-essential \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ # Set up a non-root user to satisfy Hugging Face security protocols
10
+ RUN useradd -m -u 1000 user
11
+ USER user
12
+ ENV HOME=/home/user \
13
+ PATH=/home/user/.local/bin:$PATH
14
+
15
+ WORKDIR $HOME/app
16
+
17
+ # Copy dependencies first for better layer caching
18
+ COPY --chown=user multimodal-engine/requirements.txt .
19
+ RUN pip install --no-cache-dir -r requirements.txt
20
+
21
+ # Copy the entire multimodal-engine folder
22
+ COPY --chown=user multimodal-engine/ .
23
+
24
+ # Hugging Face Spaces requires port 7860
25
+ EXPOSE 7860
26
+
27
+ # Launch Streamlit
28
+ ENTRYPOINT ["streamlit", "run", "app/app.py", "--server.port=7860", "--server.address=0.0.0.0"]
README.md CHANGED
@@ -5,7 +5,6 @@ colorFrom: blue
5
  colorTo: indigo
6
  sdk: docker
7
  app_port: 7860
8
- app_dir: multimodal-engine
9
  ---
10
 
11
  <div align="center">
 
5
  colorTo: indigo
6
  sdk: docker
7
  app_port: 7860
 
8
  ---
9
 
10
  <div align="center">