espup/.devcontainer/Dockerfile
Sergio Gasquez Arcos 8d8d4124df
Add support for LLVM 17 after 1.78.0.0 (#427)
* build: Update dependencies

* feat: Add LLVM 17 support

* docs: Update changelog
2024-05-06 16:58:12 +02:00

34 lines
903 B
Docker

ARG VARIANT=latest
# Choose between: debian, ubuntu, fedora, opensuse/tumbleweed, opensuse/leap
FROM debian:${VARIANT}
ENV DEBIAN_FRONTEND=noninteractive
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
ARG CONTAINER_USER=esp
ARG CONTAINER_GROUP=esp
# Ubuntu/Debian
RUN apt-get update \
&& apt-get install -y git gcc build-essential curl pkg-config cmake \
&& apt-get clean -y && rm -rf /var/lib/apt/lists/* /tmp/library-scripts
RUN adduser --disabled-password --gecos "" ${CONTAINER_USER}
# Fedora
# RUN dnf -y update \
# && dnf -y install git perl gcc \
# && dnf clean all
# RUN adduser ${CONTAINER_USER}
USER ${CONTAINER_USER}
WORKDIR /home/${CONTAINER_USER}
# openSUSE Tumbleweed/Leap
# RUN zypper install -y git gcc ninja make \
# && zypper clean
# Install Rust
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y
ENV PATH=${PATH}:/home/${CONTAINER_USER}/.cargo/bin
CMD [ "/bin/bash" ]