qgallouedec HF Staff commited on
Commit
03966ae
·
verified ·
1 Parent(s): 916a7c7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -1
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
  # Use a lightweight Python image as the base
2
- FROM python:3.11-slim
3
 
4
  # Set the working directory inside the container
5
  WORKDIR /app
@@ -17,5 +17,12 @@ COPY . /app
17
  RUN pip install --upgrade pip
18
  RUN pip install -r requirements.txt
19
 
 
 
 
 
 
 
 
20
  # Default command to run the script
21
  CMD ["python", "main.py"]
 
1
  # Use a lightweight Python image as the base
2
+ FROM python:3-slim
3
 
4
  # Set the working directory inside the container
5
  WORKDIR /app
 
17
  RUN pip install --upgrade pip
18
  RUN pip install -r requirements.txt
19
 
20
+ # Copy the shell script and make it executable
21
+ COPY sft.sh /usr/local/bin/sft
22
+ RUN chmod +x /usr/local/bin/sft
23
+
24
+ # Optional: set entrypoint to sft
25
+ ENTRYPOINT ["sft"]
26
+
27
  # Default command to run the script
28
  CMD ["python", "main.py"]