Use fedora:latest as base
This commit is contained in:
parent
3a32584686
commit
79303167a5
@ -1,5 +1,18 @@
|
||||
FROM registry.fedoraproject.org/fedora-toolbox:39
|
||||
FROM fedora:latest as base
|
||||
LABEL com.github.containers.toolbox="true"
|
||||
|
||||
# Install base packages
|
||||
COPY base-packages.txt /
|
||||
RUN dnf -y upgrade \
|
||||
&& dnf install -y $(<base-packages.txt) \
|
||||
&& dnf clean -y all
|
||||
RUN rm /base-packages.txt
|
||||
|
||||
# Squash image to reduce final size
|
||||
FROM scratch as squashed
|
||||
COPY --from=base / /
|
||||
|
||||
FROM squashed
|
||||
# Install vscode repo
|
||||
RUN rpm --import https://packages.microsoft.com/keys/microsoft.asc
|
||||
RUN echo -e "\
|
||||
@ -12,8 +25,7 @@ gpgkey=https://packages.microsoft.com/keys/microsoft.asc\n\
|
||||
" > /etc/yum.repos.d/vscode.repo
|
||||
|
||||
# Install packages
|
||||
RUN dnf update -y \
|
||||
&& dnf install -y \
|
||||
RUN dnf install -y \
|
||||
code \
|
||||
golang \
|
||||
neovim \
|
||||
|
46
base-packages.txt
Normal file
46
base-packages.txt
Normal file
@ -0,0 +1,46 @@
|
||||
bc
|
||||
bzip2
|
||||
cracklib-dicts
|
||||
diffutils
|
||||
dnf-plugins-core
|
||||
findutils
|
||||
flatpak-spawn
|
||||
fpaste
|
||||
git
|
||||
gnupg2
|
||||
gnupg2-smime
|
||||
gvfs-client
|
||||
hostname
|
||||
iproute
|
||||
iputils
|
||||
keyutils
|
||||
krb5-libs
|
||||
less
|
||||
lsof
|
||||
mesa-dri-drivers
|
||||
mesa-vulkan-drivers
|
||||
mtr
|
||||
nss-mdns
|
||||
openssh-clients
|
||||
passwd
|
||||
pigz
|
||||
procps-ng
|
||||
psmisc
|
||||
rsync
|
||||
shadow-utils
|
||||
sudo
|
||||
tcpdump
|
||||
time
|
||||
traceroute
|
||||
tree
|
||||
unzip
|
||||
util-linux
|
||||
vte-profile
|
||||
vulkan-loader
|
||||
wget
|
||||
which
|
||||
whois
|
||||
words
|
||||
xorg-x11-xauth
|
||||
xz
|
||||
zip
|
Loading…
Reference in New Issue
Block a user