mirror of
https://github.com/Lissy93/dotfiles.git
synced 2024-11-24 16:33:14 +01:00
Docker
This commit is contained in:
parent
280ee53e6a
commit
06778db998
12
Dockerfile
12
Dockerfile
@ -3,6 +3,7 @@ FROM alpine:latest
|
||||
LABEL maintainer "Alicia Sykes <https://aliciasykes.com>"
|
||||
LABEL org.opencontainers.image.source https://github.com/lissy93/dotfiles
|
||||
|
||||
# Parameters
|
||||
ARG user=alicia
|
||||
ARG group=wheel
|
||||
ARG uid=1000
|
||||
@ -11,8 +12,8 @@ ARG userspace=userspace.git
|
||||
ARG vcsprovider=github.com
|
||||
ARG vcsowner=lissy93
|
||||
|
||||
# Install system packages, with root
|
||||
USER root
|
||||
|
||||
RUN \
|
||||
echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
|
||||
apk upgrade --no-cache && \
|
||||
@ -54,12 +55,19 @@ RUN \
|
||||
chown -R ${user}:${group} /home/${user}/.dotfiles && \
|
||||
chown -R ${user}:${group} /home/${user}/.userspace
|
||||
|
||||
ENV DOTFILES_DIR="$HOME/.dotfiles"
|
||||
|
||||
RUN chmod u+x /home/${user}/.dotfiles/install.sh
|
||||
|
||||
USER ${user}
|
||||
|
||||
RUN cd $HOME/.dotfiles && ./install.sh
|
||||
RUN cd $HOME/.dotfiles && ./install.sh --auto-yes
|
||||
|
||||
ENV HISTFILE=/home/${user}/.cache/.zsh_history
|
||||
|
||||
CMD []
|
||||
|
||||
ENTRYPOINT [ "/bin/zsh" ]
|
||||
|
||||
# docker run -it --rm -w "$HOME" -v "$HOME/.userspace":/userspace -v $PWD:/cwd -v $HOME/.config:/config:rw -v /var/run/docker.sock:/var/run/docker.sock --network host dot-test
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user