Add a bit of comments
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
parent
12aa976a20
commit
f56c7e2ac8
1 changed files with 5 additions and 0 deletions
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue