1
- ARG EMSCRIPTEN_VERSION=3.1.51
1
+ ARG EMSCRIPTEN_VERSION=3.1.57
2
2
ARG EMSDK_IMAGE=docker.io/emscripten/emsdk
3
3
4
4
# Build libsodium
@@ -16,7 +16,7 @@ RUN tar xvf libsodium-${LIBSODIUM_VERSION}.tar.gz \
16
16
# Build openssl
17
17
FROM ${EMSDK_IMAGE}:${EMSCRIPTEN_VERSION} AS OPENSSL
18
18
19
- ARG OPENSSL_VERSION=1 .1.1w
19
+ ARG OPENSSL_VERSION=3 .1.5
20
20
21
21
ADD https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz .
22
22
ADD https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz.sha256 .
@@ -28,7 +28,7 @@ RUN bash -c 'echo "$(cat openssl-${OPENSSL_VERSION}.tar.gz.sha256) openssl-${OPE
28
28
&& sed -i 's|^CROSS_COMPILE.*$|CROSS_COMPILE=|g' Makefile \
29
29
&& sed -i '/^CFLAGS/ s/$/ -D__STDC_NO_ATOMICS__=1/' Makefile \
30
30
&& sed -i '/^CXXFLAGS/ s/$/ -D__STDC_NO_ATOMICS__=1/' Makefile \
31
- && emmake make -j 2 all \
31
+ && emmake make -j$(nproc) all \
32
32
&& emmake make install
33
33
34
34
# Build libcrypt4gh
@@ -44,7 +44,7 @@ RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/
44
44
COPY --from=SODIUM /src/libsodium-stable/libsodium-js-sumo/include/ /emsdk/upstream/include/
45
45
COPY --from=SODIUM /src/libsodium-stable/libsodium-js-sumo/lib/ /emsdk/upstream/lib/
46
46
47
- ADD https://api.github.com/repos/cscfi /libcrypt4gh/compare/main...HEAD /dev/null
47
+ ADD https://api.github.com/repos/CSCfi /libcrypt4gh/compare/main...HEAD /dev/null
48
48
RUN git clone https://github.com/CSCfi/libcrypt4gh
49
49
50
50
# We'll skip linking libraries since emcc only produces static libraries
@@ -70,7 +70,7 @@ COPY --from=OPENSSL /emsdk/upstream/lib/ /emsdk/upstream/lib/
70
70
RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt \
71
71
apt-get update -q \
72
72
&& apt-get upgrade -yq -o Dpkg::Options::="--force-confold" \
73
- && apt-get install -yq autoconf build-essential
73
+ && apt-get install -yq autoconf build-essential pkg-config
74
74
75
75
ADD https://api.github.com/repos/cscfi/libcrypt4gh-keys/compare/main...HEAD /dev/null
76
76
RUN git clone https://github.com/CSCfi/libcrypt4gh-keys.git
0 commit comments