Do0rMaMu commited on
Commit
dc801c5
1 Parent(s): 7a51bc4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -4
Dockerfile CHANGED
@@ -3,12 +3,20 @@ FROM python:3.10.11
3
  # Set the working directory in the container
4
  WORKDIR /code
5
 
6
- # Copy the current directory contents into the container at /usr/src/app
 
 
 
 
 
 
 
 
7
  COPY . .
8
 
9
- # Install any needed packages specified in requirements.txt
10
- RUN pip install -r requirements.txt
11
 
12
 
13
  # Run app.py when the container launches
14
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
3
  # Set the working directory in the container
4
  WORKDIR /code
5
 
6
+ # Install ODBC drivers and development files
7
+ RUN apt-get update && apt-get install -y \
8
+ unixodbc \
9
+ unixodbc-dev \
10
+ libsqlite3-dev \
11
+ build-essential \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
+ # Copy the current directory contents into the container at /code
15
  COPY . .
16
 
17
+ # Install Python packages
18
+ RUN pip install --no-cache-dir -r requirements.txt
19
 
20
 
21
  # Run app.py when the container launches
22
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]