@@ -7,11 +7,9 @@ ARG HOME=/home/$USER
77
88RUN microdnf update -y && \
99 microdnf install -y --nodocs --setopt install_weak_deps=0 \
10- systemd tar bash-completion git micro jq dnsutils htop which procps-ng \
10+ systemd tar unzip bash-completion git micro jq dnsutils htop which procps-ng \
1111 podman podman-compose slirp4netns fuse-overlayfs --exclude container-selinux && \
12- microdnf clean all && \
13- rpm --setcaps shadow-utils 2>/dev/null && \
14- rm -rf /var/cache /var/log/dnf* /var/log/yum.*
12+ rpm --setcaps shadow-utils 2>/dev/null
1513
1614RUN adduser $USER && chown $USER -R $HOME && \
1715 echo -e "$USER:1:999\n $USER:1001:64535" > /etc/subuid; \
@@ -85,7 +83,7 @@ RUN echo '. $HOME/.custom.sh' >> .bashrc
8583
8684# VARIANT - DOTNET
8785
88- FROM base as dotnet-base
86+ FROM ghcr.io/queil/image:latest as dotnet-base
8987
9088ENV DOTNET_CLI_TELEMETRY_OPTOUT=true
9189ENV DOTNET_NOLOGO=true
@@ -96,22 +94,22 @@ RUN code-server --install-extension Ionide.Ionide-fsharp
9694FROM dotnet-base as dotnet-6
9795
9896USER root
99- RUN microdnf update -y && microdnf install -y --nodocs --setopt install_weak_deps=0 dotnet-sdk-6.0 && microdnf clean all && rm -rf /var/cache/yum
97+ RUN microdnf install -y --nodocs --setopt install_weak_deps=0 dotnet-sdk-6.0 && microdnf clean all && rm -rf /var/cache/yum
10098USER queil
10199
102- FROM base as dotnet-7
100+ FROM ghcr.io/queil/image:latest as dotnet-7
103101
104102USER root
105- RUN microdnf update -y && microdnf install -y --nodocs --setopt install_weak_deps=0 dotnet-sdk-7.0 && microdnf clean all && rm -rf /var/cache/yum
103+ RUN microdnf install -y --nodocs --setopt install_weak_deps=0 dotnet-sdk-7.0 && microdnf clean all && rm -rf /var/cache/yum
106104USER queil
107105
108106# VARIANT - RUST
109107
110- FROM base as rust
108+ FROM ghcr.io/queil/image:latest as rust
111109
112110USER root
113111
114- RUN microdnf -y update && microdnf install -y --nodocs --setopt install_weak_deps=0 gcc && \
112+ RUN microdnf install -y --nodocs --setopt install_weak_deps=0 gcc && \
115113 microdnf clean all && \
116114 rm -rf /var/cache /var/log/dnf* /var/log/yum.*
117115
@@ -126,17 +124,17 @@ RUN code-server --install-extension rust-lang.rust-analyzer && \
126124
127125# VARIANT - PYTHON
128126
129- FROM base as python
127+ FROM ghcr.io/queil/image:latest as python
130128
131129USER root
132- RUN microdnf update -y && microdnf install -y --nodocs --setopt install_weak_deps=0 poetry && microdnf clean all && rm -rf /var/cache/yum
130+ RUN microdnf install -y --nodocs --setopt install_weak_deps=0 poetry && microdnf clean all && rm -rf /var/cache/yum
133131USER queil
134132
135133RUN code-server --install-extension ms-python.python
136134
137135# VARIANT - DEVOPS
138136
139- FROM base as devops
137+ FROM ghcr.io/queil/image:latest as devops
140138
141139ARG SOPS_VER=3.7.3
142140ARG AWS_VAULT_VER=7.2.0
@@ -150,6 +148,8 @@ RUN curl -sSL https://github.com/mozilla/sops/releases/download/v${SOPS_VER}/sop
150148 chmod +x /usr/bin/sops && \
151149 curl -sSL https://github.com/99designs/aws-vault/releases/download/v${AWS_VAULT_VER}/aws-vault-linux-amd64 -o /usr/bin/aws-vault && \
152150 chmod +x /usr/bin/aws-vault && \
153- microdnf update -y && microdnf install -y --nodocs --setopt install_weak_deps=0 awscli2 && microdnf clean all && rm -rf /var/cache/yum
151+ curl -sSL https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -o awscliv2.zip && \
152+ unzip awscliv2.zip && \
153+ ./aws/install
154154
155155USER queil
0 commit comments