update Dockerfile to use local dotfiles in Ubuntu

This commit is contained in:
2024-03-22 17:34:13 -06:00
parent 10a8ce0387
commit 69d1b36a7e
4 changed files with 18 additions and 32 deletions

View File

@@ -1,5 +1,14 @@
FROM alpine:edge
RUN apk --no-cache add git curl
RUN sh -c "$(curl -fsLS git.io/chezmoi)" -- init --apply candrewlee14
FROM ubuntu:latest
RUN apt-get update && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:fish-shell/release-3 && \
apt update && \
apt install -y git curl fish sudo && \
rm -rf /var/lib/apt/lists/*
RUN sh -c "$(curl -fsLS get.chezmoi.io)"
COPY . /root/.local/share/chezmoi/
RUN chezmoi init --apply
ENV SHELL /usr/bin/fish
CMD ["fish"]