-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
53 lines (40 loc) · 1.67 KB
/
Dockerfile
File metadata and controls
53 lines (40 loc) · 1.67 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM ubuntu:latest
MAINTAINER Konrad Wieczork <keth@kwketh.com>
ENV DEBIAN_FRONTEND noninteractive
# Not very pretty script but seems the only way
# to efficiently manage as few cached image and
# for the script to be reasonably maintainable
# to add new dependencies without long rebuild
# times.
# Install core dependencies
ADD ./sh/01_install_deps_core.sh /tmp/sh/01_install_deps_core.sh
RUN chmod +x /tmp/sh/*.sh && . /tmp/sh/01_install_deps_core.sh
# Install user-custom development tools
ADD ./sh/02_install_deps_dev.sh /tmp/sh/02_install_deps_dev.sh
RUN chmod +x /tmp/sh/*.sh && . /tmp/sh/02_install_deps_dev.sh
# Install zsh
ADD ./sh/03_setup_zsh.sh /tmp/sh/03_setup_zsh.sh
RUN chmod +x /tmp/sh/*.sh && . /tmp/sh/03_setup_zsh.sh
ENV SHELL zsh
# Install binwalk (and all the additional dependencies)
ADD ./sh/04_install_binwalk.sh /tmp/sh/04_install_binwalk.sh
RUN chmod +x /tmp/sh/*.sh && . /tmp/sh/04_install_binwalk.sh
# Install utils
ADD ./sh/05_install_utils.sh /tmp/sh/05_install_utils.sh
RUN chmod +x /tmp/sh/*.sh && . /tmp/sh/05_install_utils.sh
# Install other fun tools
ADD ./sh/06_install_funtools.sh /tmp/sh/06_install_funtools.sh
RUN chmod +x /tmp/sh/*.sh && . /tmp/sh/06_install_funtools.sh
# Setup dotfiles
ADD ./sh/07_setup_dotfiles.sh /tmp/sh/07_setup_dotfiles.sh
RUN chmod +x /tmp/sh/*.sh && . /tmp/sh/07_setup_dotfiles.sh
# Setup directories
ADD ./sh/08_setup_dirs.sh /tmp/sh/08_setup_dirs.sh
RUN chmod +x /tmp/sh/*.sh && . /tmp/sh/08_setup_dirs.sh
# Install modern tools
ADD ./sh/09_modern_tools.sh /tmp/sh/09_modern_tools.sh
RUN chmod +x /tmp/sh/*.sh && . /tmp/sh/09_modern_tools.sh
ADD bin/* /root/bin
RUN chmod +x /root/bin/*
ENTRYPOINT ["/bin/zsh"]
EXPOSE 8081