Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
skaji committed Dec 30, 2024
1 parent 794aa71 commit 9366b21
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@
FROM buildpack-deps:bookworm AS static-libcrypt
FROM ubuntu:18.04 AS static-libcrypt

RUN set -eux; \
export DEBIAN_FRONTEND=noninteractive; \
apt-get update; \
apt-get install -y \
ca-certificates \
curl \
gcc \
libc6-dev \
make \
patch \
perl \
tar \
wget \
xz-utils \
;

RUN set -eux; \
mkdir /libc6-dev; \
cd /tmp; \
if [ $(uname -m) = x86_64 ]; then \
curl -fsSL -O http://security.ubuntu.com/ubuntu/pool/main/g/glibc/libc6-dev_2.23-0ubuntu3_amd64.deb; \
dpkg-deb -x libc6-dev_2.23-0ubuntu3_amd64.deb /libc6-dev; \
cp /libc6-dev/usr/lib/x86_64-linux-gnu/libcrypt.a /libcrypt.a; \
else \
curl -fsSL -O http://ports.ubuntu.com/pool/main/g/glibc/libc6-dev_2.23-0ubuntu3_arm64.deb; \
dpkg-deb -x libc6-dev_2.23-0ubuntu3_arm64.deb /libc6-dev; \
cp /libc6-dev/usr/lib/aarch64-linux-gnu/libcrypt.a /libcrypt.a; \
fi; \
curl -fsSL -o libxcrypt-4.4.36.tar.xz https://github.com/besser82/libxcrypt/releases/download/v4.4.36/libxcrypt-4.4.36.tar.xz; \
tar xf libxcrypt-4.4.36.tar.xz; \
cd libxcrypt-4.4.36; \
./configure --with-pic --disable-shared; \
make; \
mv .libs/libcrypt.a /; \
:

FROM ubuntu:18.04 AS builder
Expand Down

0 comments on commit 9366b21

Please sign in to comment.