Add a bit of comments

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
baalajimaestro 2023-05-31 11:03:17 +05:30
parent 12aa976a20
commit f56c7e2ac8
Signed by: baalajimaestro
GPG key ID: F93C394FE9BBAFD5

View file

@ -16,6 +16,7 @@ RUN apk update && apk add autoconf \
ENV NIM_VERSION v1.6.12
ENV LIBRESSL_VERSION v3.8.0
# Compile LibreSSL Portable from source
RUN git clone https://github.com/libressl/portable --depth=1 -b ${LIBRESSL_VERSION} libressl && \
cd libressl && \
./autogen.sh && \
@ -24,6 +25,7 @@ RUN git clone https://github.com/libressl/portable --depth=1 -b ${LIBRESSL_VERSI
cmake -G"Ninja" .. && \
ninja
# Compile Nim from source including upstream patch
RUN git clone https://github.com/nim-lang/Nim.git --depth=1 -b ${NIM_VERSION} && \
cd Nim && \
git config user.name gitlab && \
@ -34,6 +36,7 @@ RUN git clone https://github.com/nim-lang/Nim.git --depth=1 -b ${NIM_VERSION} &&
# Add built nim to path
ENV PATH=/Nim/bin:$PATH
# Update nimble
RUN nimble install nimble --accept
COPY . /app
@ -54,6 +57,8 @@ RUN /root/.nimble/bin/nimble build --passL:-L/usr/lib \
--passL:-L/libressl/build-ninja/ssl \
--passL:-L/libressl/build-ninja/crypto \
--passL:-L/libressl/build-ninja/tls \
--passL:-static \
--passL:"-flto" \
-d:release \
--opt:speed \
--mm:orc \