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 NIM_VERSION v1.6.12
|
||||||
ENV LIBRESSL_VERSION v3.8.0
|
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 && \
|
RUN git clone https://github.com/libressl/portable --depth=1 -b ${LIBRESSL_VERSION} libressl && \
|
||||||
cd libressl && \
|
cd libressl && \
|
||||||
./autogen.sh && \
|
./autogen.sh && \
|
||||||
|
@ -24,6 +25,7 @@ RUN git clone https://github.com/libressl/portable --depth=1 -b ${LIBRESSL_VERSI
|
||||||
cmake -G"Ninja" .. && \
|
cmake -G"Ninja" .. && \
|
||||||
ninja
|
ninja
|
||||||
|
|
||||||
|
# Compile Nim from source including upstream patch
|
||||||
RUN git clone https://github.com/nim-lang/Nim.git --depth=1 -b ${NIM_VERSION} && \
|
RUN git clone https://github.com/nim-lang/Nim.git --depth=1 -b ${NIM_VERSION} && \
|
||||||
cd Nim && \
|
cd Nim && \
|
||||||
git config user.name gitlab && \
|
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
|
# Add built nim to path
|
||||||
ENV PATH=/Nim/bin:$PATH
|
ENV PATH=/Nim/bin:$PATH
|
||||||
|
|
||||||
|
# Update nimble
|
||||||
RUN nimble install nimble --accept
|
RUN nimble install nimble --accept
|
||||||
|
|
||||||
COPY . /app
|
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/ssl \
|
||||||
--passL:-L/libressl/build-ninja/crypto \
|
--passL:-L/libressl/build-ninja/crypto \
|
||||||
--passL:-L/libressl/build-ninja/tls \
|
--passL:-L/libressl/build-ninja/tls \
|
||||||
|
--passL:-static \
|
||||||
|
--passL:"-flto" \
|
||||||
-d:release \
|
-d:release \
|
||||||
--opt:speed \
|
--opt:speed \
|
||||||
--mm:orc \
|
--mm:orc \
|
||||||
|
|
Loading…
Reference in a new issue