mirror of
https://github.com/Mailu/Mailu.git
synced 2025-03-17 20:57:54 +02:00
retry with cargo
This commit is contained in:
parent
155a4cce5e
commit
dbd32cabf9
@ -7,12 +7,19 @@ ENV VERSION=$version
|
||||
COPY requirements.txt /requirements.txt
|
||||
COPY . /docs
|
||||
|
||||
RUN apk add --no-cache --virtual .build-deps \
|
||||
gcc musl-dev \
|
||||
&& pip3 install -r /requirements.txt \
|
||||
&& mkdir -p /build/$VERSION \
|
||||
&& sphinx-build -W /docs /build/$VERSION \
|
||||
&& apk del .build-deps
|
||||
RUN set -euxo pipefail \
|
||||
; deps="gcc musl-dev" \
|
||||
; [[ "${machine}" != x86_64 ]] && \
|
||||
deps="${deps} cargo" \
|
||||
; apk add --no-cache --virtual .build-deps ${deps} \
|
||||
; [[ "${machine}" == armv7* ]] && \
|
||||
mkdir -p /root/.cargo/registry/index && \
|
||||
git clone --bare https://github.com/rust-lang/crates.io-index.git /root/.cargo/registry/index/github.com-1285ae84e5963aae \
|
||||
; pip3 install -r /requirements.txt \
|
||||
; mkdir -p /build/$VERSION \
|
||||
; sphinx-build -W /docs /build/$VERSION \
|
||||
; apk del .build-deps \
|
||||
; rm -rf /root/.cargo
|
||||
|
||||
|
||||
# Build nginx deployment image including generated html
|
||||
|
Loading…
x
Reference in New Issue
Block a user