mirror of
https://github.com/esp-rs/espup.git
synced 2025-09-28 05:10:44 +00:00
27 lines
779 B
Docker
27 lines
779 B
Docker
ARG VARIANT=bullseye
|
|
FROM debian:${VARIANT}
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
ENV LC_ALL=C.UTF-8
|
|
ENV LANG=C.UTF-8
|
|
|
|
# Arguments
|
|
ARG CONTAINER_USER=esp
|
|
ARG CONTAINER_GROUP=esp
|
|
|
|
# Install dependencies
|
|
RUN apt-get update \
|
|
&& apt-get install -y git curl gcc clang ninja-build libudev-dev unzip xz-utils\
|
|
python3 python3-pip python3-venv libusb-1.0-0 libssl-dev pkg-config libtinfo5 libpython2.7 \
|
|
&& apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts
|
|
|
|
# Set users
|
|
RUN adduser --disabled-password --gecos "" ${CONTAINER_USER}
|
|
USER ${CONTAINER_USER}
|
|
WORKDIR /home/${CONTAINER_USER}
|
|
|
|
# Install Rust
|
|
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
|
|
ENV PATH=${PATH}:/home/${CONTAINER_USER}/.cargo/bin:/home/${CONTAINER_USER}/opt/bin
|
|
|
|
CMD [ "/bin/bash" ]
|