Skip to content

Instantly share code, notes, and snippets.

@victorlin
Last active March 10, 2026 21:44
Show Gist options
  • Select an option

  • Save victorlin/8287b4214028eeb4b2cf2b9b753a335f to your computer and use it in GitHub Desktop.

Select an option

Save victorlin/8287b4214028eeb4b2cf2b9b753a335f to your computer and use it in GitHub Desktop.
FROM ubuntu:24.04
# Install build deps and Fossil
RUN apt-get update && apt-get install -y \
build-essential \
tcl \
wget \
unzip \
fossil \
&& rm -rf /var/lib/apt/lists/*
ENV USER=root
WORKDIR /sqlite
# Clone and build SQLite
# Note: We clone inside to keep the host environment clean
RUN fossil clone --user root https://sqlite.org/src sqlite.fossil \
&& fossil open sqlite.fossil \
&& fossil update branch-3.52 \
&& ./configure \
&& make sqlite3
COPY verify_fix.sh .
RUN chmod +x verify_fix.sh
ENTRYPOINT ["/sqlite/sqlite3"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment