24 lines
531 B
Docker
24 lines
531 B
Docker
FROM alpine:latest
|
|
|
|
RUN apk update && apk add --no-cache \
|
|
git openssh helix bash bash-completion go curl \
|
|
helix-tree-sitter-vendor
|
|
|
|
# tree-sitter-yaml, tree-sitter-caddy
|
|
|
|
RUN adduser -D -u 1000 -s /bin/bash user
|
|
|
|
# Compile host-spawn
|
|
COPY scripts/build-host-spawn.sh .
|
|
RUN chmod +x build-host-spawn.sh
|
|
RUN ./build-host-spawn.sh
|
|
|
|
# Allow Podman host access
|
|
RUN ln -s /usr/local/bin/spawn /usr/local/bin/podman
|
|
|
|
# Config files
|
|
COPY config/ /home/user/
|
|
RUN chown -R user:user /home/user
|
|
|
|
WORKDIR /home/user
|
|
VOLUME /home/user |