mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-09-09 18:25:58 +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:
@@ -37,10 +37,14 @@ RUN apk add --no-cache --upgrade \
|
||||
curl \
|
||||
tar
|
||||
{% else %}
|
||||
ENV DEBIAN_FRONTEND=noninteractive \
|
||||
LANG=C.UTF-8 \
|
||||
TZ=UTC \
|
||||
TERM=xterm-256color
|
||||
|
||||
# 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
|
||||
|
||||
RUN echo $TERM
|
||||
|
||||
RUN apt update -y \
|
||||
&& apt install -y \
|
||||
@@ -80,6 +84,12 @@ ARG DB=mysql
|
||||
ARG DB=postgresql
|
||||
{% 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
|
||||
RUN rustup set profile minimal
|
||||
|
||||
|
Reference in New Issue
Block a user