-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (24 loc) · 698 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM ubuntu:latest
MAINTAINER daephx <[email protected]>
# OS updates and install
RUN apt-get -qq update
RUN apt-get install git sudo zsh -qq -y
# Install extra dependencies
RUN apt-get install -y \
python3-dev
# Create test user and add to sudoers
RUN useradd -m -s /bin/zsh dotuser
RUN usermod -aG sudo dotuser
RUN echo "dotuser ALL=(ALL:ALL) NOPASSWD: ALL" > /etc/sudoers
# Add dotfiles and chown
ADD . /home/dotuser/projects/dotfiles
RUN chown -R dotuser:dotuser /home/dotuser
# Switch testuser
USER dotuser
ENV HOME /home/dotuser
COPY . /home/dotuser/.dotfiles
# Change working directory
WORKDIR /home/dotuser/.dotfiles
## Run setup
# RUN ./install.ps1 docker
CMD ["/bin/bash"]