Move to Fedora
This commit is contained in:
@@ -1,24 +1,29 @@
|
||||
FROM alpine:latest
|
||||
FROM fedora:43
|
||||
|
||||
RUN apk update && apk add --no-cache \
|
||||
git openssh helix bash bash-completion go curl \
|
||||
helix-tree-sitter-vendor podman-compose wl-clipboard
|
||||
# Install dependencies
|
||||
RUN dnf update -y && \
|
||||
dnf -y install procps ping bash-completion glibc-langpack-en \
|
||||
host-spawn dbus-launch \
|
||||
git unzip helix pnpm
|
||||
|
||||
# tree-sitter-yaml, tree-sitter-caddy
|
||||
# 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
|
||||
|
||||
RUN adduser -D -u 1000 -s /bin/bash user
|
||||
USER user
|
||||
WORKDIR /home/user
|
||||
|
||||
# Compile host-spawn
|
||||
COPY scripts/build-host-spawn.sh .
|
||||
RUN chmod +x build-host-spawn.sh
|
||||
RUN ./build-host-spawn.sh
|
||||
# Setup some language servers from NPM
|
||||
RUN pnpm setup && . /home/user/.bashrc && pnpm i -g deno bash-language-server vscode-langservers-extracted dockerfile-language-server-nodejs \
|
||||
typescript typescript-language-server
|
||||
|
||||
# Copy configs
|
||||
COPY --chown=user:user config/bashrc .bashrc
|
||||
COPY --chown=user:user config/.config/ .config/
|
||||
COPY config/bin /usr/local/bin
|
||||
|
||||
# Allow Podman host access
|
||||
RUN ln -s /usr/local/bin/spawn /usr/local/bin/podman
|
||||
RUN ln -s /usr/local/bin/host /usr/local/bin/podman
|
||||
|
||||
# Config files
|
||||
COPY config/ /home/user/
|
||||
RUN chown -R user:user /home/user
|
||||
|
||||
WORKDIR /home/user
|
||||
VOLUME /home/user
|
||||
Reference in New Issue
Block a user