Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -3
Dockerfile
CHANGED
|
@@ -4,10 +4,10 @@ WORKDIR /app
|
|
| 4 |
|
| 5 |
# Install dependencies for building sqlite3 from source
|
| 6 |
RUN apt-get update && \
|
| 7 |
-
apt-get install -y wget build-essential && \
|
| 8 |
apt-get clean
|
| 9 |
|
| 10 |
-
#
|
| 11 |
RUN wget https://www.sqlite.org/2023/sqlite-autoconf-3430000.tar.gz && \
|
| 12 |
tar xzf sqlite-autoconf-3430000.tar.gz && \
|
| 13 |
cd sqlite-autoconf-3430000 && \
|
|
@@ -18,6 +18,9 @@ RUN wget https://www.sqlite.org/2023/sqlite-autoconf-3430000.tar.gz && \
|
|
| 18 |
cd .. && \
|
| 19 |
rm -rf sqlite-autoconf-3430000 sqlite-autoconf-3430000.tar.gz
|
| 20 |
|
|
|
|
|
|
|
|
|
|
| 21 |
COPY ./requirements.txt /app/requirements.txt
|
| 22 |
|
| 23 |
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
|
@@ -27,4 +30,4 @@ COPY . /app
|
|
| 27 |
# Change permissions for the app directory
|
| 28 |
RUN chmod -R 777 /app
|
| 29 |
|
| 30 |
-
CMD ["chainlit", "run", "app.py", "--port", "7860"]
|
|
|
|
| 4 |
|
| 5 |
# Install dependencies for building sqlite3 from source
|
| 6 |
RUN apt-get update && \
|
| 7 |
+
apt-get install -y wget build-essential libsqlite3-dev && \
|
| 8 |
apt-get clean
|
| 9 |
|
| 10 |
+
# Download and compile the latest sqlite3
|
| 11 |
RUN wget https://www.sqlite.org/2023/sqlite-autoconf-3430000.tar.gz && \
|
| 12 |
tar xzf sqlite-autoconf-3430000.tar.gz && \
|
| 13 |
cd sqlite-autoconf-3430000 && \
|
|
|
|
| 18 |
cd .. && \
|
| 19 |
rm -rf sqlite-autoconf-3430000 sqlite-autoconf-3430000.tar.gz
|
| 20 |
|
| 21 |
+
# Verify the sqlite3 version
|
| 22 |
+
RUN sqlite3 --version
|
| 23 |
+
|
| 24 |
COPY ./requirements.txt /app/requirements.txt
|
| 25 |
|
| 26 |
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
|
|
|
| 30 |
# Change permissions for the app directory
|
| 31 |
RUN chmod -R 777 /app
|
| 32 |
|
| 33 |
+
CMD ["chainlit", "run", "app.py", "--port", "7860"]
|