Skip to content

Commit

Permalink
Update Dockerfile to improve installation process
Browse files Browse the repository at this point in the history
Redefined the installation by setting DEBIAN_FRONTEND to noninteractive.
https://manpages.debian.org/testing/debconf-doc/debconf.7.en.html#DEBIAN_FRONTEND
  • Loading branch information
jcardozo committed Sep 16, 2024
1 parent 87ec065 commit 2115a22
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
# Use Ubuntu as the base image
FROM ubuntu:24.04

# Install most essential tools (curl and ca-certificates)
# Update package list and install essential tools (curl, ca-certificates)
RUN apt-get update && \
apt-get install -y \
# Install packages without prompts and recommendations
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
curl \
ca-certificates \
--no-install-recommends && \
ca-certificates && \
# Clean up apt cache to reduce image size
apt-get clean && \
# Delete downloaded package lists
rm -rf /var/lib/apt/lists/*

# Install Nix Package Manager using the Determinate Systems Nix installer
Expand Down

0 comments on commit 2115a22

Please sign in to comment.