forked from ncarlier/devbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (28 loc) · 783 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
34
35
36
37
38
39
# My devbox Docker image.
#
# VERSION 0.0.1
from debian:jessie
maintainer Nicolas Carlier <https://github.com/ncarlier>
env DEBIAN_FRONTEND noninteractive
# Install Ansible
run apt-get update && \
apt-get install -y openssh-client ansible && \
apt-get clean
# Add playbooks to the Docker image
copy provisioning /provisioning
workdir /provisioning
# Run Ansible to configure the Docker image
run ansible-playbook headless.yml -i inventory/docker
# Setup shared volume
volume /var/shared
# Setup working directory
workdir /home/dev
# Run everything below as the dev user
user dev
# Setup dev user environment
env HOME /home/dev
env PATH $HOME/bin:$PATH
env LANG fr_FR.UTF-8
env LANGUAGE fr_FR:fr
env LC_ALL fr_FR.UTF-8
entrypoint ["/usr/bin/ssh-agent", "/bin/zsh"]