Files
devcontainer/containers/fedora/Containerfile
maurice 28843cdb89
All checks were successful
Build container / fedora-build (push) Successful in 9m53s
Updates
2025-11-26 13:40:39 +01:00

31 lines
1014 B
Docker

FROM quay.io/fedora/fedora:43
# === install system packages ===
RUN dnf update -y && \
dnf -y install procps ping bash-completion glibc-langpack-en \
host-spawn dbus-launch \
git pnpm helix zip
# === setup user ===
RUN useradd -ms /bin/bash user && \
usermod -aG wheel user && sed -i '/NOPASSWD/s/^#//g' /etc/sudoers && \
mkdir -p /run/user/1000 && chown user:user /run/user/1000
# === Add host entry for podman ===
RUN ln -s /usr/local/bin/host /usr/local/bin/podman
USER user
WORKDIR /home/user
RUN mkdir .config .local .cache
COPY --chown=user:user config/bashrc .bashrc
COPY --chown=user:user config/git .config/git/config
COPY --chown=user:user config/helix/ .config/helix/
COPY config/bin /usr/local/bin
# === Setup PNPM & install language servers ===
RUN /bin/bash -c "SHELL=/bin/bash pnpm setup && . /home/user/.bashrc && pnpm i -g deno bash-language-server vscode-langservers-extracted dockerfile-language-server-nodejs \
typescript typescript-language-server"
VOLUME /home/user