fix: add vendor directory and snmp package to k8s Dockerfile

This commit is contained in:
Graham McIntire 2026-01-27 09:21:55 -06:00
parent 124d68d28d
commit c694d452de
No known key found for this signature in database

View file

@ -41,6 +41,7 @@ ENV MIX_ENV="prod"
# install mix dependencies
COPY mix.exs mix.lock ./
COPY vendor vendor
RUN --mount=type=cache,target=/root/.hex \
--mount=type=cache,target=/root/.mix \
mix deps.get --only $MIX_ENV
@ -82,7 +83,7 @@ FROM ${RUNNER_IMAGE} AS final
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get upgrade -y \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends libstdc++6 openssl libncurses6 locales ca-certificates iputils-ping \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends libstdc++6 openssl libncurses6 locales ca-certificates iputils-ping snmp \
&& rm -rf /var/lib/apt/lists/*
# Set the locale