mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2024-11-26 14:56:27 +03:00
Set build time options for dpkg and reproducible builds
Ref: https://github.com/moby/moby/issues/4032 Ref: https://sweetcode.io/using-docker-reproducible-build-environments/ Ref: https://github.com/hashbang/aosp-build/blob/master/config/container/Dockerfile
This commit is contained in:
parent
146525db91
commit
446fc3f1f8
13 changed files with 158 additions and 40 deletions
|
@ -37,10 +37,14 @@ RUN apk add --no-cache --upgrade \
|
||||||
curl \
|
curl \
|
||||||
tar
|
tar
|
||||||
{% else %}
|
{% else %}
|
||||||
ENV DEBIAN_FRONTEND=noninteractive \
|
|
||||||
LANG=C.UTF-8 \
|
# Build time options to avoid dpkg warnings and help with reproducible builds.
|
||||||
TZ=UTC \
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
TERM=xterm-256color
|
ARG LANG=C.UTF-8
|
||||||
|
ARG TZ=UTC
|
||||||
|
ARG TERM=xterm-256color
|
||||||
|
|
||||||
|
RUN echo $TERM
|
||||||
|
|
||||||
RUN apt update -y \
|
RUN apt update -y \
|
||||||
&& apt install -y \
|
&& apt install -y \
|
||||||
|
@ -80,6 +84,12 @@ ARG DB=mysql
|
||||||
ARG DB=postgresql
|
ARG DB=postgresql
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
# Build time options to avoid dpkg warnings and help with reproducible builds.
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
ARG LANG=C.UTF-8
|
||||||
|
ARG TZ=UTC
|
||||||
|
ARG TERM=xterm-256color
|
||||||
|
|
||||||
# Don't download rust docs
|
# Don't download rust docs
|
||||||
RUN rustup set profile minimal
|
RUN rustup set profile minimal
|
||||||
|
|
||||||
|
|
|
@ -8,10 +8,14 @@ ENV VAULT_VERSION "v2.12.0b"
|
||||||
|
|
||||||
ENV URL "https://github.com/dani-garcia/bw_web_builds/releases/download/$VAULT_VERSION/bw_web_$VAULT_VERSION.tar.gz"
|
ENV URL "https://github.com/dani-garcia/bw_web_builds/releases/download/$VAULT_VERSION/bw_web_$VAULT_VERSION.tar.gz"
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive \
|
|
||||||
LANG=C.UTF-8 \
|
# Build time options to avoid dpkg warnings and help with reproducible builds.
|
||||||
TZ=UTC \
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
TERM=xterm-256color
|
ARG LANG=C.UTF-8
|
||||||
|
ARG TZ=UTC
|
||||||
|
ARG TERM=xterm-256color
|
||||||
|
|
||||||
|
RUN echo $TERM
|
||||||
|
|
||||||
RUN apt update -y \
|
RUN apt update -y \
|
||||||
&& apt install -y \
|
&& apt install -y \
|
||||||
|
@ -34,6 +38,12 @@ FROM rust:1.40 as build
|
||||||
# set mysql backend
|
# set mysql backend
|
||||||
ARG DB=mysql
|
ARG DB=mysql
|
||||||
|
|
||||||
|
# Build time options to avoid dpkg warnings and help with reproducible builds.
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
ARG LANG=C.UTF-8
|
||||||
|
ARG TZ=UTC
|
||||||
|
ARG TERM=xterm-256color
|
||||||
|
|
||||||
# Don't download rust docs
|
# Don't download rust docs
|
||||||
RUN rustup set profile minimal
|
RUN rustup set profile minimal
|
||||||
|
|
||||||
|
|
|
@ -8,10 +8,14 @@ ENV VAULT_VERSION "v2.12.0b"
|
||||||
|
|
||||||
ENV URL "https://github.com/dani-garcia/bw_web_builds/releases/download/$VAULT_VERSION/bw_web_$VAULT_VERSION.tar.gz"
|
ENV URL "https://github.com/dani-garcia/bw_web_builds/releases/download/$VAULT_VERSION/bw_web_$VAULT_VERSION.tar.gz"
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive \
|
|
||||||
LANG=C.UTF-8 \
|
# Build time options to avoid dpkg warnings and help with reproducible builds.
|
||||||
TZ=UTC \
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
TERM=xterm-256color
|
ARG LANG=C.UTF-8
|
||||||
|
ARG TZ=UTC
|
||||||
|
ARG TERM=xterm-256color
|
||||||
|
|
||||||
|
RUN echo $TERM
|
||||||
|
|
||||||
RUN apt update -y \
|
RUN apt update -y \
|
||||||
&& apt install -y \
|
&& apt install -y \
|
||||||
|
@ -34,6 +38,12 @@ FROM rust:1.40 as build
|
||||||
# set sqlite as default for DB ARG for backward compatibility
|
# set sqlite as default for DB ARG for backward compatibility
|
||||||
ARG DB=sqlite
|
ARG DB=sqlite
|
||||||
|
|
||||||
|
# Build time options to avoid dpkg warnings and help with reproducible builds.
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
ARG LANG=C.UTF-8
|
||||||
|
ARG TZ=UTC
|
||||||
|
ARG TERM=xterm-256color
|
||||||
|
|
||||||
# Don't download rust docs
|
# Don't download rust docs
|
||||||
RUN rustup set profile minimal
|
RUN rustup set profile minimal
|
||||||
|
|
||||||
|
|
|
@ -8,10 +8,14 @@ ENV VAULT_VERSION "v2.12.0b"
|
||||||
|
|
||||||
ENV URL "https://github.com/dani-garcia/bw_web_builds/releases/download/$VAULT_VERSION/bw_web_$VAULT_VERSION.tar.gz"
|
ENV URL "https://github.com/dani-garcia/bw_web_builds/releases/download/$VAULT_VERSION/bw_web_$VAULT_VERSION.tar.gz"
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive \
|
|
||||||
LANG=C.UTF-8 \
|
# Build time options to avoid dpkg warnings and help with reproducible builds.
|
||||||
TZ=UTC \
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
TERM=xterm-256color
|
ARG LANG=C.UTF-8
|
||||||
|
ARG TZ=UTC
|
||||||
|
ARG TERM=xterm-256color
|
||||||
|
|
||||||
|
RUN echo $TERM
|
||||||
|
|
||||||
RUN apt update -y \
|
RUN apt update -y \
|
||||||
&& apt install -y \
|
&& apt install -y \
|
||||||
|
@ -34,6 +38,12 @@ FROM rust:1.40 as build
|
||||||
# set mysql backend
|
# set mysql backend
|
||||||
ARG DB=mysql
|
ARG DB=mysql
|
||||||
|
|
||||||
|
# Build time options to avoid dpkg warnings and help with reproducible builds.
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
ARG LANG=C.UTF-8
|
||||||
|
ARG TZ=UTC
|
||||||
|
ARG TERM=xterm-256color
|
||||||
|
|
||||||
# Don't download rust docs
|
# Don't download rust docs
|
||||||
RUN rustup set profile minimal
|
RUN rustup set profile minimal
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,12 @@ FROM clux/muslrust:nightly-2019-12-19 as build
|
||||||
# set mysql backend
|
# set mysql backend
|
||||||
ARG DB=mysql
|
ARG DB=mysql
|
||||||
|
|
||||||
|
# Build time options to avoid dpkg warnings and help with reproducible builds.
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
ARG LANG=C.UTF-8
|
||||||
|
ARG TZ=UTC
|
||||||
|
ARG TERM=xterm-256color
|
||||||
|
|
||||||
# Don't download rust docs
|
# Don't download rust docs
|
||||||
RUN rustup set profile minimal
|
RUN rustup set profile minimal
|
||||||
|
|
||||||
|
|
|
@ -8,10 +8,14 @@ ENV VAULT_VERSION "v2.12.0b"
|
||||||
|
|
||||||
ENV URL "https://github.com/dani-garcia/bw_web_builds/releases/download/$VAULT_VERSION/bw_web_$VAULT_VERSION.tar.gz"
|
ENV URL "https://github.com/dani-garcia/bw_web_builds/releases/download/$VAULT_VERSION/bw_web_$VAULT_VERSION.tar.gz"
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive \
|
|
||||||
LANG=C.UTF-8 \
|
# Build time options to avoid dpkg warnings and help with reproducible builds.
|
||||||
TZ=UTC \
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
TERM=xterm-256color
|
ARG LANG=C.UTF-8
|
||||||
|
ARG TZ=UTC
|
||||||
|
ARG TERM=xterm-256color
|
||||||
|
|
||||||
|
RUN echo $TERM
|
||||||
|
|
||||||
RUN apt update -y \
|
RUN apt update -y \
|
||||||
&& apt install -y \
|
&& apt install -y \
|
||||||
|
@ -34,6 +38,12 @@ FROM rust:1.40 as build
|
||||||
# set postgresql backend
|
# set postgresql backend
|
||||||
ARG DB=postgresql
|
ARG DB=postgresql
|
||||||
|
|
||||||
|
# Build time options to avoid dpkg warnings and help with reproducible builds.
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
ARG LANG=C.UTF-8
|
||||||
|
ARG TZ=UTC
|
||||||
|
ARG TERM=xterm-256color
|
||||||
|
|
||||||
# Don't download rust docs
|
# Don't download rust docs
|
||||||
RUN rustup set profile minimal
|
RUN rustup set profile minimal
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,12 @@ FROM clux/muslrust:nightly-2019-12-19 as build
|
||||||
# set postgresql backend
|
# set postgresql backend
|
||||||
ARG DB=postgresql
|
ARG DB=postgresql
|
||||||
|
|
||||||
|
# Build time options to avoid dpkg warnings and help with reproducible builds.
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
ARG LANG=C.UTF-8
|
||||||
|
ARG TZ=UTC
|
||||||
|
ARG TERM=xterm-256color
|
||||||
|
|
||||||
# Don't download rust docs
|
# Don't download rust docs
|
||||||
RUN rustup set profile minimal
|
RUN rustup set profile minimal
|
||||||
|
|
||||||
|
|
|
@ -8,10 +8,14 @@ ENV VAULT_VERSION "v2.12.0b"
|
||||||
|
|
||||||
ENV URL "https://github.com/dani-garcia/bw_web_builds/releases/download/$VAULT_VERSION/bw_web_$VAULT_VERSION.tar.gz"
|
ENV URL "https://github.com/dani-garcia/bw_web_builds/releases/download/$VAULT_VERSION/bw_web_$VAULT_VERSION.tar.gz"
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive \
|
|
||||||
LANG=C.UTF-8 \
|
# Build time options to avoid dpkg warnings and help with reproducible builds.
|
||||||
TZ=UTC \
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
TERM=xterm-256color
|
ARG LANG=C.UTF-8
|
||||||
|
ARG TZ=UTC
|
||||||
|
ARG TERM=xterm-256color
|
||||||
|
|
||||||
|
RUN echo $TERM
|
||||||
|
|
||||||
RUN apt update -y \
|
RUN apt update -y \
|
||||||
&& apt install -y \
|
&& apt install -y \
|
||||||
|
@ -34,6 +38,12 @@ FROM rust:1.40 as build
|
||||||
# set sqlite as default for DB ARG for backward compatibility
|
# set sqlite as default for DB ARG for backward compatibility
|
||||||
ARG DB=sqlite
|
ARG DB=sqlite
|
||||||
|
|
||||||
|
# Build time options to avoid dpkg warnings and help with reproducible builds.
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
ARG LANG=C.UTF-8
|
||||||
|
ARG TZ=UTC
|
||||||
|
ARG TERM=xterm-256color
|
||||||
|
|
||||||
# Don't download rust docs
|
# Don't download rust docs
|
||||||
RUN rustup set profile minimal
|
RUN rustup set profile minimal
|
||||||
|
|
||||||
|
|
|
@ -27,6 +27,12 @@ FROM clux/muslrust:nightly-2019-12-19 as build
|
||||||
# set sqlite as default for DB ARG for backward compatibility
|
# set sqlite as default for DB ARG for backward compatibility
|
||||||
ARG DB=sqlite
|
ARG DB=sqlite
|
||||||
|
|
||||||
|
# Build time options to avoid dpkg warnings and help with reproducible builds.
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
ARG LANG=C.UTF-8
|
||||||
|
ARG TZ=UTC
|
||||||
|
ARG TERM=xterm-256color
|
||||||
|
|
||||||
# Don't download rust docs
|
# Don't download rust docs
|
||||||
RUN rustup set profile minimal
|
RUN rustup set profile minimal
|
||||||
|
|
||||||
|
|
|
@ -8,10 +8,14 @@ ENV VAULT_VERSION "v2.12.0b"
|
||||||
|
|
||||||
ENV URL "https://github.com/dani-garcia/bw_web_builds/releases/download/$VAULT_VERSION/bw_web_$VAULT_VERSION.tar.gz"
|
ENV URL "https://github.com/dani-garcia/bw_web_builds/releases/download/$VAULT_VERSION/bw_web_$VAULT_VERSION.tar.gz"
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive \
|
|
||||||
LANG=C.UTF-8 \
|
# Build time options to avoid dpkg warnings and help with reproducible builds.
|
||||||
TZ=UTC \
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
TERM=xterm-256color
|
ARG LANG=C.UTF-8
|
||||||
|
ARG TZ=UTC
|
||||||
|
ARG TERM=xterm-256color
|
||||||
|
|
||||||
|
RUN echo $TERM
|
||||||
|
|
||||||
RUN apt update -y \
|
RUN apt update -y \
|
||||||
&& apt install -y \
|
&& apt install -y \
|
||||||
|
@ -34,6 +38,12 @@ FROM rust:1.40 as build
|
||||||
# set mysql backend
|
# set mysql backend
|
||||||
ARG DB=mysql
|
ARG DB=mysql
|
||||||
|
|
||||||
|
# Build time options to avoid dpkg warnings and help with reproducible builds.
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
ARG LANG=C.UTF-8
|
||||||
|
ARG TZ=UTC
|
||||||
|
ARG TERM=xterm-256color
|
||||||
|
|
||||||
# Don't download rust docs
|
# Don't download rust docs
|
||||||
RUN rustup set profile minimal
|
RUN rustup set profile minimal
|
||||||
|
|
||||||
|
|
|
@ -8,10 +8,14 @@ ENV VAULT_VERSION "v2.12.0b"
|
||||||
|
|
||||||
ENV URL "https://github.com/dani-garcia/bw_web_builds/releases/download/$VAULT_VERSION/bw_web_$VAULT_VERSION.tar.gz"
|
ENV URL "https://github.com/dani-garcia/bw_web_builds/releases/download/$VAULT_VERSION/bw_web_$VAULT_VERSION.tar.gz"
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive \
|
|
||||||
LANG=C.UTF-8 \
|
# Build time options to avoid dpkg warnings and help with reproducible builds.
|
||||||
TZ=UTC \
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
TERM=xterm-256color
|
ARG LANG=C.UTF-8
|
||||||
|
ARG TZ=UTC
|
||||||
|
ARG TERM=xterm-256color
|
||||||
|
|
||||||
|
RUN echo $TERM
|
||||||
|
|
||||||
RUN apt update -y \
|
RUN apt update -y \
|
||||||
&& apt install -y \
|
&& apt install -y \
|
||||||
|
@ -34,6 +38,12 @@ FROM rust:1.40 as build
|
||||||
# set sqlite as default for DB ARG for backward compatibility
|
# set sqlite as default for DB ARG for backward compatibility
|
||||||
ARG DB=sqlite
|
ARG DB=sqlite
|
||||||
|
|
||||||
|
# Build time options to avoid dpkg warnings and help with reproducible builds.
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
ARG LANG=C.UTF-8
|
||||||
|
ARG TZ=UTC
|
||||||
|
ARG TERM=xterm-256color
|
||||||
|
|
||||||
# Don't download rust docs
|
# Don't download rust docs
|
||||||
RUN rustup set profile minimal
|
RUN rustup set profile minimal
|
||||||
|
|
||||||
|
|
|
@ -8,10 +8,14 @@ ENV VAULT_VERSION "v2.12.0b"
|
||||||
|
|
||||||
ENV URL "https://github.com/dani-garcia/bw_web_builds/releases/download/$VAULT_VERSION/bw_web_$VAULT_VERSION.tar.gz"
|
ENV URL "https://github.com/dani-garcia/bw_web_builds/releases/download/$VAULT_VERSION/bw_web_$VAULT_VERSION.tar.gz"
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive \
|
|
||||||
LANG=C.UTF-8 \
|
# Build time options to avoid dpkg warnings and help with reproducible builds.
|
||||||
TZ=UTC \
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
TERM=xterm-256color
|
ARG LANG=C.UTF-8
|
||||||
|
ARG TZ=UTC
|
||||||
|
ARG TERM=xterm-256color
|
||||||
|
|
||||||
|
RUN echo $TERM
|
||||||
|
|
||||||
RUN apt update -y \
|
RUN apt update -y \
|
||||||
&& apt install -y \
|
&& apt install -y \
|
||||||
|
@ -34,6 +38,12 @@ FROM rust:1.40 as build
|
||||||
# set mysql backend
|
# set mysql backend
|
||||||
ARG DB=mysql
|
ARG DB=mysql
|
||||||
|
|
||||||
|
# Build time options to avoid dpkg warnings and help with reproducible builds.
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
ARG LANG=C.UTF-8
|
||||||
|
ARG TZ=UTC
|
||||||
|
ARG TERM=xterm-256color
|
||||||
|
|
||||||
# Don't download rust docs
|
# Don't download rust docs
|
||||||
RUN rustup set profile minimal
|
RUN rustup set profile minimal
|
||||||
|
|
||||||
|
|
|
@ -8,10 +8,14 @@ ENV VAULT_VERSION "v2.12.0b"
|
||||||
|
|
||||||
ENV URL "https://github.com/dani-garcia/bw_web_builds/releases/download/$VAULT_VERSION/bw_web_$VAULT_VERSION.tar.gz"
|
ENV URL "https://github.com/dani-garcia/bw_web_builds/releases/download/$VAULT_VERSION/bw_web_$VAULT_VERSION.tar.gz"
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive \
|
|
||||||
LANG=C.UTF-8 \
|
# Build time options to avoid dpkg warnings and help with reproducible builds.
|
||||||
TZ=UTC \
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
TERM=xterm-256color
|
ARG LANG=C.UTF-8
|
||||||
|
ARG TZ=UTC
|
||||||
|
ARG TERM=xterm-256color
|
||||||
|
|
||||||
|
RUN echo $TERM
|
||||||
|
|
||||||
RUN apt update -y \
|
RUN apt update -y \
|
||||||
&& apt install -y \
|
&& apt install -y \
|
||||||
|
@ -34,6 +38,12 @@ FROM rust:1.40 as build
|
||||||
# set sqlite as default for DB ARG for backward compatibility
|
# set sqlite as default for DB ARG for backward compatibility
|
||||||
ARG DB=sqlite
|
ARG DB=sqlite
|
||||||
|
|
||||||
|
# Build time options to avoid dpkg warnings and help with reproducible builds.
|
||||||
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
ARG LANG=C.UTF-8
|
||||||
|
ARG TZ=UTC
|
||||||
|
ARG TERM=xterm-256color
|
||||||
|
|
||||||
# Don't download rust docs
|
# Don't download rust docs
|
||||||
RUN rustup set profile minimal
|
RUN rustup set profile minimal
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue