sschellhammer commited on
Commit
c4fc0c2
·
verified ·
1 Parent(s): 1dc7470

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -23
Dockerfile CHANGED
@@ -13,40 +13,21 @@ RUN apt-get update && apt-get install -y \
13
  build-essential \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
- # Install Python dependencies
17
- #RUN pip install potato-annotation
18
- #RUN pip install pyyaml
19
- #RUN pip install numpy
20
- #RUN pip install pandas
21
- #RUN pip install tqdm
22
- #RUN pip install scikit-learn
23
- #RUN pip install simpledorff
24
- #RUN pip install flask
25
- #RUN pip install bs4
26
- #RUN pip install requests
27
- #RUN pip install pydantic
28
- #RUN pip install gunicorn
29
- #RUN pip install ollama
30
-
31
  RUN git clone https://github.com/SEBSCHELLI/potato.git /app
32
  RUN pip install --upgrade pip
33
  RUN pip install . # Installs the potato repo as a Python package
34
  RUN pip install huggingface_hub
35
 
 
36
  RUN pip list
37
 
 
38
  COPY --chown=user . /app
39
  RUN chmod +x /app/start.sh
40
 
41
- # Load Files
42
- #RUN python setup_files.py
43
-
44
- #RUN ls -l
45
-
46
  # Expose web port
47
  EXPOSE 7860
48
 
49
- # Default command to run Potato server
50
- #CMD ["potato", "start", "config.yaml", "-p", "7860"]
51
-
52
  CMD ["./start.sh"]
 
13
  build-essential \
14
  && rm -rf /var/lib/apt/lists/*
15
 
16
+ # Install Potato and Python dependencies
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  RUN git clone https://github.com/SEBSCHELLI/potato.git /app
18
  RUN pip install --upgrade pip
19
  RUN pip install . # Installs the potato repo as a Python package
20
  RUN pip install huggingface_hub
21
 
22
+ # List installed dependencies
23
  RUN pip list
24
 
25
+ # Copy files and set access rights
26
  COPY --chown=user . /app
27
  RUN chmod +x /app/start.sh
28
 
 
 
 
 
 
29
  # Expose web port
30
  EXPOSE 7860
31
 
32
+ # Run start script
 
 
33
  CMD ["./start.sh"]