Refactor Dockerfile to rearrange package installation for clarity

This commit is contained in:
Palash Tyagi 2025-05-05 01:30:20 +01:00
parent eeba602c14
commit d42437bf32

View File

@ -7,12 +7,15 @@ ARG DEBIAN_FRONTEND=noninteractive
RUN apt update -y && apt upgrade -y && useradd -m docker RUN apt update -y && apt upgrade -y && useradd -m docker
RUN apt install -y --no-install-recommends \ RUN apt install -y --no-install-recommends \
curl jq build-essential libssl-dev libffi-dev python3 python3-venv python3-dev python3-pip \ curl jq git \
# dev dependencies
build-essential libssl-dev libffi-dev python3 python3-venv python3-dev python3-pip \
# dot net core dependencies # dot net core dependencies
libicu74 libssl3 libkrb5-3 zlib1g libcurl4 \ libicu74 libssl3 libkrb5-3 zlib1g libcurl4 \
# Rust and Cargo dependencies # Rust and Cargo dependencies
gcc cmake gcc cmake
# Install Rust and Cargo # Install Rust and Cargo
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/home/docker/.cargo/bin:${PATH}" ENV PATH="/home/docker/.cargo/bin:${PATH}"