Created
May 24, 2024 13:20
-
-
Save ToshY/5433fbe056ac06e2b0e0ad16bdeca73f to your computer and use it in GitHub Desktop.
Add mysqlclient 8.4 on alpine:3.19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://jay.gooby.org/2022/07/19/building-just-mysqlclient-on-alpine-from-scratch | |
FROM alpine:3.19 | |
RUN apk add --no-cache bash build-base autoconf openssl openssl-dev ncurses ncurses-dev wget cmake && \ | |
wget -O /tmp/mysql-8.4.0.tar.gz https://dev.mysql.com/get/Downloads/MySQL-8.4/mysql-8.4.0.tar.gz && \ | |
cd /tmp && tar -zxf /tmp/mysql-8.4.0.tar.gz && \ | |
cd /tmp/mysql-8.4.0 && cmake -DFORCE_INSOURCE_BUILD=1 -DWITHOUT_SERVER:BOOL=ON -DCMAKE_INSTALL_PREFIX=/ && \ | |
make && make install && \ | |
rm -rf /tmp/mysql* && rm -rf /var/cache/apk/* | |
CMD ["mysqldump", "-V"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment