Xenobd commited on
Commit
5aac0a2
·
verified ·
1 Parent(s): b515d13

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -3
Dockerfile CHANGED
@@ -7,6 +7,22 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
7
  git \
8
  wget \
9
  curl \
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
  # Set working directory
@@ -15,10 +31,11 @@ WORKDIR /app
15
  # Copy project files
16
  COPY . /app
17
 
18
- # Install Python dependencies
19
- RUN pip install -r requirements.txt
 
20
 
21
- # Expose the app port (change if your app runs on a different one)
22
  EXPOSE 7860
23
 
24
  # Run your app on container start
 
7
  git \
8
  wget \
9
  curl \
10
+ pkg-config \
11
+ libssl-dev \
12
+ libffi-dev \
13
+ libbz2-dev \
14
+ liblzma-dev \
15
+ libreadline-dev \
16
+ libsqlite3-dev \
17
+ zlib1g-dev \
18
+ libncurses5-dev \
19
+ libncursesw5-dev \
20
+ libgdbm-dev \
21
+ libnss3-dev \
22
+ libxml2-dev \
23
+ libxmlsec1-dev \
24
+ libffi-dev \
25
+ libbz2-dev \
26
  && rm -rf /var/lib/apt/lists/*
27
 
28
  # Set working directory
 
31
  # Copy project files
32
  COPY . /app
33
 
34
+ # Upgrade pip and install Python dependencies with verbose
35
+ RUN pip install --upgrade pip && \
36
+ pip install -v -r requirements.txt
37
 
38
+ # Expose the app port
39
  EXPOSE 7860
40
 
41
  # Run your app on container start