fix: run apt-get update before running install command for build-essential

This commit is contained in:
Erica Marigold 2023-07-20 17:07:37 +05:30 committed by GitHub
parent c3127c4863
commit 1e23ca988d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,7 @@ RUN cargo build --release
# Copy the binary into a new container for a smaller docker image
FROM debian:buster-slim
RUN USER=root apt install build-essential
RUN USER=root apt-get update && apt-get install build-essential
RUN wget -4c https://ftp.gnu.org/gnu/glibc/glibc-2.29.tar.gz
RUN tar -zxvf glibc-2.29.tar.gz