qgallouedec HF Staff commited on
Commit
aae1d71
·
1 Parent(s): 6f4c525

let's try somethgin basic

Browse files
Files changed (1) hide show
  1. Dockerfile +31 -19
Dockerfile CHANGED
@@ -1,27 +1,39 @@
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
6
 
7
- # Install git and clean up to keep the image small
8
- RUN apt-get update && \
9
- apt-get install -y git && \
10
- apt-get clean && \
11
- rm -rf /var/lib/apt/lists/*
12
 
13
- # Copy all files to the container
14
- COPY . /app
15
 
16
- # Install required dependencies
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
- # Launch the application
 
 
 
 
 
 
 
 
 
 
 
25
  EXPOSE 7860
26
  ENV GRADIO_SERVER_NAME="0.0.0.0"
27
- CMD ["python", "app.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
6
 
7
+ # # Install git and clean up to keep the image small
8
+ # RUN apt-get update && \
9
+ # apt-get install -y git && \
10
+ # apt-get clean && \
11
+ # rm -rf /var/lib/apt/lists/*
12
 
13
+ # # Copy all files to the container
14
+ # COPY . /app
15
 
16
+ # # Install required dependencies
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
+ # # Launch the application
25
+ # EXPOSE 7860
26
+ # ENV GRADIO_SERVER_NAME="0.0.0.0"
27
+ # CMD ["python", "app.py"]
28
+
29
+
30
+
31
+ 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"]