mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-05-25 04:53:58 +00:00
Move dpkg --add-architecture
before the first apt call
Thanks to @dani-garcia for the review!
This commit is contained in:
parent
43aa75dc89
commit
0f0e5876ae
7 changed files with 66 additions and 67 deletions
|
@ -37,6 +37,16 @@ ARG DB=sqlite
|
|||
# Don't download rust docs
|
||||
RUN rustup set profile minimal
|
||||
|
||||
# Install required build libs for armel architecture.
|
||||
RUN sed 's/^deb/deb-src/' /etc/apt/sources.list > \
|
||||
/etc/apt/sources.list.d/deb-src.list \
|
||||
&& dpkg --add-architecture armel \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y \
|
||||
--no-install-recommends \
|
||||
libssl-dev:armel \
|
||||
libc6-dev:armel
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y \
|
||||
--no-install-recommends \
|
||||
|
@ -52,16 +62,6 @@ ENV USER "root"
|
|||
RUN USER=root cargo new --bin app
|
||||
WORKDIR /app
|
||||
|
||||
# Install required build libs for armel architecture.
|
||||
RUN sed 's/^deb/deb-src/' /etc/apt/sources.list > \
|
||||
/etc/apt/sources.list.d/deb-src.list \
|
||||
&& dpkg --add-architecture armel \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y \
|
||||
--no-install-recommends \
|
||||
libssl-dev:armel \
|
||||
libc6-dev:armel
|
||||
|
||||
# Copies over *only* your manifests and build files
|
||||
COPY ./Cargo.* ./
|
||||
COPY ./rust-toolchain ./rust-toolchain
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue