0
0
mirror of https://github.com/sqlite/sqlite.git synced 2024-11-21 19:29:09 +01:00

Create Dockerfile

This commit is contained in:
ferryman0608 2024-03-29 23:05:07 +08:00 committed by GitHub
parent cfd4507c83
commit 7e5d7cc879
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

29
Dockerfile Normal file
View File

@ -0,0 +1,29 @@
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /sqlite
RUN apt-get update && apt-get install -y git
RUN git clone https://github.com/sqlite/sqlite.git .
RUN git checkout version-3.45.1
RUN apt-get install -y \
autoconf \
automake \
bison \
libtool \
make \
tcl \
pkg-config \
gcc \
g++ \
tcl-dev \
zlib1g-dev \
tcl8.6-dev \
tar
RUN cd /sqlite \
&& git fetch \
&& git checkout version-3.45.1 \
&& ./configure \
&& make \
&& make sqlite3.c \
&& make devtest
EXPOSE 8080
CMD ["/bin/bash"]