Skip to content

Commit

Permalink
Fix Dockerfile lint
Browse files Browse the repository at this point in the history
  • Loading branch information
aajith-arista committed Jan 2, 2024
1 parent cb2e521 commit f457418
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Check failure on line 3 in Dockerfile

View workflow job for this annotation

GitHub Actions / Lint

DL3040 warning: `dnf clean all` missing after dnf command.
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 ./
Expand All @@ -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
Expand Down

0 comments on commit f457418

Please sign in to comment.