forked from silarsis/personal_dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (21 loc) · 882 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
FROM ubuntu:trusty
MAINTAINER Kevin Littlejohn <kevin@littlejohn.id.au>
RUN apt-get -yq update && apt-get -yq install curl build-essential git
RUN cd /tmp \
&& curl -OL https://github.com/coreos/fleet/releases/download/v0.9.0/fleet-v0.9.0-linux-amd64.tar.gz \
&& tar zxf fleet-v0.9.0-linux-amd64.tar.gz \
&& cd fleet-v0.9.0-linux-amd64 \
&& mv fleetctl /usr/local/bin \
&& rm -rf /tmp/fleet-*
# Configure my user
RUN adduser --gecos '' --disabled-password silarsis
RUN echo 'silarsis ALL = NOPASSWD: ALL' >> /etc/sudoers
USER silarsis
ENV HOME /home/silarsis
RUN git config --global color.ui auto \
&& git config --global user.email "kevin@littlejohn.id.au" \
&& git config --global user.name "Kevin Littlejohn" \
&& git config --global push.default simple
ADD bash_profile /home/silarsis/.bash_profile
ADD start.sh /usr/local/bin/start.sh
CMD /usr/local/bin/start.sh