arajshiva commited on
Commit
a0a21db
·
verified ·
1 Parent(s): b89a86d

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ######################## WRITE YOUR DOCKERFILE SCRIPT HERE #########################
3
+ FROM python:3.9
4
+
5
+ RUN useradd -m -u 1000 user
6
+ USER user
7
+ ENV PATH="/home/user/.local/bin:$PATH"
8
+
9
+ WORKDIR /app
10
+
11
+ COPY --chown=user ./requirements.txt requirements.txt
12
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
13
+
14
+ COPY --chown=user . /app
15
+
16
+ # Start the Streamlit app on port 7860, the default port expected by Spaces
17
+ CMD ["streamlit", "run", "app.py", "--host", "0.0.0.0", "--port", "7860"]