qgallouedec HF Staff commited on
Commit
60c9f07
·
1 Parent(s): aae1d71

install reqs and make sft script exec

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -2
Dockerfile CHANGED
@@ -32,8 +32,13 @@ FROM python:3.10-slim
32
 
33
  WORKDIR /usr/src/app
34
  COPY . .
35
- RUN pip install --no-cache-dir gradio
 
 
 
 
 
 
36
  EXPOSE 7860
37
  ENV GRADIO_SERVER_NAME="0.0.0.0"
38
-
39
  CMD ["python", "app.py"]
 
32
 
33
  WORKDIR /usr/src/app
34
  COPY . .
35
+ RUN pip install --no-cache-dir -r requirements.txt
36
+
37
+ # Make sft script executable
38
+ COPY sft.sh /usr/local/bin/sft
39
+ RUN chmod +x /usr/local/bin/sft
40
+
41
+ # Start gradio application
42
  EXPOSE 7860
43
  ENV GRADIO_SERVER_NAME="0.0.0.0"
 
44
  CMD ["python", "app.py"]