gopichandra commited on
Commit
4ec80ee
·
verified ·
1 Parent(s): ba74411

Update dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +11 -13
dockerfile CHANGED
@@ -1,9 +1,8 @@
1
- # Use the official Python 3.10 image
2
  FROM python:3.10
3
 
4
- # Install system dependencies, including OpenSSL 1.1 and others
5
- RUN apt-get update && \
6
- apt-get install -y \
7
  libssl1.1 \
8
  libssl-dev \
9
  git \
@@ -19,18 +18,17 @@ RUN apt-get update && \
19
  && rm -rf /var/lib/apt/lists/* \
20
  && git lfs install
21
 
22
- # Install necessary Python packages from requirements.txt
23
- COPY requirements.txt /tmp/requirements.txt
24
- RUN pip install --no-cache-dir -r /tmp/requirements.txt
25
 
26
- # Set the working directory to /app
27
- WORKDIR /app
28
 
29
- # Copy the rest of the application files into the container
30
- COPY . /app
31
 
32
- # Expose the port the app will run on
33
  EXPOSE 7860
34
 
35
- # Run the Gradio app
36
  CMD ["python", "app.py"]
 
1
+ # Start with the official Python 3.10 base image
2
  FROM python:3.10
3
 
4
+ # Install system dependencies including OpenSSL 1.1
5
+ RUN apt-get update && apt-get install -y \
 
6
  libssl1.1 \
7
  libssl-dev \
8
  git \
 
18
  && rm -rf /var/lib/apt/lists/* \
19
  && git lfs install
20
 
21
+ # Set working directory
22
+ WORKDIR /home/user/app
 
23
 
24
+ # Copy the requirements.txt file into the container
25
+ COPY requirements.txt /tmp/requirements.txt
26
 
27
+ # Install Python dependencies
28
+ RUN pip install --no-cache-dir -r /tmp/requirements.txt
29
 
30
+ # Expose the port
31
  EXPOSE 7860
32
 
33
+ # Run the app
34
  CMD ["python", "app.py"]