Skip to content

Commit

Permalink
Use Debian noninteractive for less log spam when building image (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
sweoggy authored Jun 12, 2024
1 parent bf1f53a commit 517e1bc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build/docker/debian.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM golang:1.22-bookworm AS dev
WORKDIR /cli

ARG DEBIAN_FRONTEND=noninteractive

RUN apt -y update && apt -y upgrade && apt -y install git && \
apt -y clean && rm -rf /var/lib/apt/lists/*
COPY go.mod go.sum ./
Expand All @@ -11,6 +14,9 @@ RUN go build -o debricked ./cmd/debricked
CMD [ "debricked" ]

FROM debian:bookworm-slim AS cli-base

ARG DEBIAN_FRONTEND=noninteractive

ENV DEBRICKED_TOKEN=""
RUN apt -y update && apt -y upgrade && apt -y install git && \
apt -y clean && rm -rf /var/lib/apt/lists/*
Expand All @@ -25,6 +31,8 @@ CMD [ "debricked", "scan" ]

FROM cli-base AS resolution

ARG DEBIAN_FRONTEND=noninteractive

RUN echo "deb http://deb.debian.org/debian unstable main" >> /etc/apt/sources.list && \
echo "Package: *" >> /etc/apt/preferences && \
echo "Pin: release a=unstable" >> /etc/apt/preferences && \
Expand Down

0 comments on commit 517e1bc

Please sign in to comment.