dotfiles/Dockerfile
Correl Roush de2ec05c6d Split chmod and execution of provisioning script
Attempt to correct an issue in the hub.docker.com build:

/bin/sh: 1: /home/correl/dotfiles/provision.sh: Text file busy

 Removing intermediate container b72e6ce14652
 The command '/bin/sh -c sudo chown -R correl:correl . && /home/correl/dotfiles/provision.sh -D' returned a non-zero code: 2
2018-04-11 09:18:10 -04:00

15 lines
379 B
Docker

FROM ubuntu
RUN apt-get update \
&& apt-get install -y sudo locales
RUN localedef -i en_US -f UTF-8 en_US.UTF-8 \
&& useradd -m -s /bin/bash correl \
&& echo 'correl ALL=(ALL) NOPASSWD:ALL' >>/etc/sudoers
USER correl
WORKDIR /home/correl
COPY . /home/correl/dotfiles
RUN sudo chown -R correl:correl .
RUN /home/correl/dotfiles/provision.sh -D
CMD ["/usr/bin/zsh"]