Spaces:
Runtime error
Runtime error
updates
Browse files- Dockerfile +17 -3
Dockerfile
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
# Use an official Python runtime as a parent image
|
2 |
-
FROM python:3.10-slim-
|
3 |
|
4 |
# Set the working directory in the container to /app
|
5 |
WORKDIR /app
|
@@ -7,12 +7,26 @@ WORKDIR /app
|
|
7 |
# Copy the current directory contents into the container at /app
|
8 |
COPY . /app
|
9 |
|
10 |
-
# Install system dependencies
|
11 |
RUN apt-get update && \
|
12 |
-
apt-get install -y --no-install-recommends git && \
|
13 |
apt-get clean && \
|
14 |
rm -rf /var/lib/apt/lists/*
|
15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
# Install Python dependencies
|
17 |
RUN pip install poetry gradio
|
18 |
|
|
|
1 |
# Use an official Python runtime as a parent image
|
2 |
+
FROM python:3.10-slim-buster
|
3 |
|
4 |
# Set the working directory in the container to /app
|
5 |
WORKDIR /app
|
|
|
7 |
# Copy the current directory contents into the container at /app
|
8 |
COPY . /app
|
9 |
|
10 |
+
# Install system dependencies required for building sqlite3 and other operations
|
11 |
RUN apt-get update && \
|
12 |
+
apt-get install -y --no-install-recommends git wget build-essential libsqlite3-dev && \
|
13 |
apt-get clean && \
|
14 |
rm -rf /var/lib/apt/lists/*
|
15 |
|
16 |
+
# Download and compile sqlite3 from source
|
17 |
+
RUN wget https://www.sqlite.org/2021/sqlite-autoconf-3350500.tar.gz && \
|
18 |
+
tar xvfz sqlite-autoconf-3350500.tar.gz && \
|
19 |
+
cd sqlite-autoconf-3350500 && \
|
20 |
+
./configure --prefix=/usr --disable-static CFLAGS="-DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_DBSTAT_VTAB=1 -DSQLITE_ENABLE_FTS3_TOKENIZER=1 -DSQLITE_ENABLE_FTS4=1 -DSQLITE_ENABLE_FTS5=1 -DSQLITE_ENABLE_JSON1=1 -DSQLITE_ENABLE_RTREE=1" && \
|
21 |
+
make && \
|
22 |
+
make install && \
|
23 |
+
cd .. && \
|
24 |
+
rm sqlite-autoconf-3350500.tar.gz && \
|
25 |
+
rm -rf sqlite-autoconf-3350500
|
26 |
+
|
27 |
+
# Verify sqlite3 version
|
28 |
+
RUN sqlite3 --version
|
29 |
+
|
30 |
# Install Python dependencies
|
31 |
RUN pip install poetry gradio
|
32 |
|