-
Notifications
You must be signed in to change notification settings - Fork 316
/
Dockerfile
31 lines (26 loc) · 911 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
# 17.10 (artful) will be EOL July 2018; update FROM directive before then
FROM ubuntu:18.04
MAINTAINER The Habitat Maintainers <humans@habitat.sh>
ENV CARGO_HOME /cargo-cache
ENV PATH $PATH:$CARGO_HOME/bin:/root/.cargo/bin
ARG HAB_BLDR_URL
ENV HAB_BLDR_URL ${HAB_BLDR_URL:-}
COPY components/hab/install.sh \
support/linux/install_dev_0_ubuntu_latest.sh \
support/linux/install_dev_9_linux.sh \
/tmp/
COPY support/devshell_profile.sh /root/.bash_profile
RUN apt-get update \
&& apt-get install -y --no-install-recommends sudo \
&& sh /tmp/install_dev_0_ubuntu_latest.sh \
&& sh /tmp/install_dev_9_linux.sh \
&& useradd -m -s /bin/bash -G sudo jdoe && echo jdoe:1234 | chpasswd \
&& rm -rf \
/tmp/install.sh \
/tmp/install_dev_0_ubuntu_latest.sh \
/tmp/install_dev_9_linux.sh \
/hab/cache \
/root/.cargo/registry \
/var/lib/apt/lists/*
WORKDIR /src
CMD ["bash", "-l"]