-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
62 lines (56 loc) · 1.44 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
FROM ubuntu:18.04
RUN \
apt update -qq && \
apt install -y --no-install-recommends \
build-essential \
ca-certificates \
curl \
file \
gcc \
git \
gnupg \
libedit-dev \
libicu-dev \
libjemalloc-dev \
libpq-dev \
libqrencode-dev \
libreadline-dev \
libselinux1-dev \
libssl-dev \
libxml2-dev \
libxslt1-dev \
openssh-client \
procps \
sudo \
uuid-dev \
vim \
wget \
zlib1g-dev
ENV APP_HOME /Sandbox
RUN mkdir $APP_HOME
WORKDIR $APP_HOME
ADD install.sh $APP_HOME/install.sh
ADD diff.sh $APP_HOME/diff.sh
ADD sections $APP_HOME/sections
ADD splash_screen $APP_HOME/splash_screen
ADD wallpapers $APP_HOME/wallpapers
ADD fonts $APP_HOME/fonts
ADD installation $APP_HOME/installation
ADD iTerm2 $APP_HOME/iTerm2
ADD Mac_Dot_Files $APP_HOME/Mac_Dot_Files
ADD misc $APP_HOME/misc
ADD screensavers $APP_HOME/screensavers
ADD Rectangle $APP_HOME/Rectangle
ADD vim $APP_HOME/vim
ADD VSCode $APP_HOME/VSCode
ADD gitconfig.txt $APP_HOME/gitconfig.txt
ADD .tool-versions $APP_HOME/.tool-versions
# Create a user 'sandbox_user' to test running outside of root
ENV NEW_USER sandbox_user
RUN groupadd -g 999 $NEW_USER && \
useradd --create-home --shell /bin/bash -r -u 999 -g $NEW_USER $NEW_USER
RUN usermod -aG sudo $NEW_USER
RUN usermod -p "" $NEW_USER
USER $NEW_USER
ENV SANDBOX true
CMD ./install.sh