From f4574188af800989a6f471619f55c891d9b5272a Mon Sep 17 00:00:00 2001 From: Arun Ajith S Date: Tue, 2 Jan 2024 02:53:53 -0800 Subject: [PATCH] Fix Dockerfile lint --- Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1c4ccdd..c843fc9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,18 @@ # syntax=docker/dockerfile:1.3 FROM quay.io/almalinuxorg/9-minimal:9.3-20231124 AS base -RUN microdnf install -y dnf +RUN microdnf install -y dnf-4.* && dnf clean all RUN dnf install -y epel-release-9* git-2.* jq-1.* \ openssl-3.* python3-pip-21.* python3-pyyaml-5.* \ rpmdevtools-9.* sudo-1.* && \ dnf install -y mock-5.* automake-1.16.* && \ dnf install -y wget-1.21.* && \ - dnf install -y vim-enhanced emacs && dnf clean all + dnf install -y vim-enhanced-2:8.2.* emacs-27.* && dnf clean all RUN useradd -s /bin/bash mockbuild -p "$(openssl passwd -1 mockbuild)" CMD ["bash"] FROM base as builder USER root -RUN dnf install -y golang && dnf clean all +RUN dnf install -y golang-1.20.* && dnf clean all RUN mkdir -p /src/code.arista.io/eos/tools/eext && mkdir -p /usr/bin WORKDIR /src/code.arista.io/eos/tools/eext COPY ./go.mod ./ @@ -25,8 +25,7 @@ COPY ./testutil/ testutil/ COPY ./manifest/ manifest/ COPY ./dnfconfig/ dnfconfig/ COPY ./srcconfig/ srcconfig/ -RUN go mod download -RUN go build -o /usr/bin/eext +RUN go mod download && go build -o /usr/bin/eext FROM base as deploy ARG CFG_DIR=/usr/share/eext