Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ RUN cd /tmp && \
# https://github.com/tj/n#installation
RUN curl --location https://raw.githubusercontent.com/tj/n/master/bin/n --output /usr/local/bin/n && \
chmod a+x /usr/local/bin/n && \
n 22.19.0
n 22.21.1


# Install Node.js packages
RUN npm install --global \
http-server
http-server@14.1.1


# Patch index.js in http-server
Expand All @@ -64,16 +64,16 @@ RUN apt update && \
# Install Python 3.13.x
# https://www.python.org/downloads/
RUN cd /tmp && \
curl --remote-name https://www.python.org/ftp/python/3.13.7/Python-3.13.7.tgz && \
tar xzf Python-3.13.7.tgz && \
rm --force Python-3.13.7.tgz && \
cd Python-3.13.7 && \
curl --remote-name https://www.python.org/ftp/python/3.13.11/Python-3.13.11.tgz && \
tar xzf Python-3.13.11.tgz && \
rm --force Python-3.13.11.tgz && \
cd Python-3.13.11 && \
CFLAGS="-Os" ./configure --disable-static --enable-optimizations --enable-shared --with-lto --without-tests && \
./configure && \
make && \
make install && \
cd .. && \
rm --force --recursive Python-3.13.7 && \
rm --force --recursive Python-3.13.11 && \
ln --relative --symbolic /usr/local/bin/pip3 /usr/local/bin/pip && \
ln --relative --symbolic /usr/local/bin/python3 /usr/local/bin/python && \
pip3 install --no-cache-dir --upgrade pip
Expand All @@ -89,16 +89,16 @@ RUN apt update && \
apt clean && \
rm --force --recursive /var/lib/apt/lists/* && \
cd /tmp && \
curl https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.4.tar.gz --output ruby-3.4.4.tar.gz && \
tar xzf ruby-3.4.4.tar.gz && \
rm --force ruby-3.4.4.tar.gz && \
cd ruby-3.4.4 && \
curl https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.8.tar.gz --output ruby-3.4.8.tar.gz && \
tar xzf ruby-3.4.8.tar.gz && \
rm --force ruby-3.4.8.tar.gz && \
cd ruby-3.4.8 && \
if [ "$BUILDARCH" = "arm64" ]; then ASFLAGS=-mbranch-protection=pac-ret; else ASFLAGS=; fi && \
ASFLAGS=${ASFLAGS} CFLAGS=-Os ./configure --disable-install-doc --enable-load-relative && \
make && \
make install && \
cd .. && \
rm --force --recursive ruby-3.4.4
rm --force --recursive ruby-3.4.8


# Install Ruby packages
Expand All @@ -117,14 +117,14 @@ RUN echo "gem: --no-document" > /etc/gemrc && \
# https://www.sqlite.org/howtocompile.html#compiling_the_command_line_interface
COPY shell.c.patch /tmp
RUN cd /tmp && \
curl --remote-name https://www.sqlite.org/2025/sqlite-amalgamation-3500400.zip && \
unzip sqlite-amalgamation-3500400.zip && \
rm --force sqlite-amalgamation-3500400.zip && \
cd sqlite-amalgamation-3500400 && \
curl --remote-name https://www.sqlite.org/2025/sqlite-amalgamation-3510100.zip && \
unzip sqlite-amalgamation-3510100.zip && \
rm --force sqlite-amalgamation-3510100.zip && \
cd sqlite-amalgamation-3510100 && \
patch shell.c < /tmp/shell.c.patch && \
gcc -D HAVE_READLINE -D SQLITE_DEFAULT_FOREIGN_KEYS=1 -D SQLITE_OMIT_DYNAPROMPT=1 shell.c sqlite3.c -lpthread -ldl -lm -lreadline -lncurses -o /usr/local/bin/sqlite3 && \
cd .. && \
rm --force --recursive sqlite-amalgamation-3500400 && \
rm --force --recursive sqlite-amalgamation-3510100 && \
rm --force /tmp/shell.c.patch


Expand Down
4 changes: 2 additions & 2 deletions shell.c.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@@ -33794,10 +33794,6 @@
@@ -33659,10 +33659,6 @@
if( stdin_is_interactive ){
char *zHome;
char *zHistory;
int nHistory;
- sqlite3_fprintf(stdout,
- "SQLite version %s %.19s\n" /*extra-version-info*/
- "Enter \".help\" for usage hints.\n",
Expand Down