-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
53 lines (40 loc) · 1.19 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
FROM ubuntu:14.04
MAINTAINER Erik Osterman "[email protected]"
# System ENV
ENV TIMEZONE Etc/UTC
ENV DEBIAN_FRONTEND noninteractive
ENV PATH "$PATH:/armada:/usr/local/bin"
ENV TERM xterm
ENV DOCKER_GID 233
ENV DOCKER_HOST=
# Locale specific
ENV LANGUAGE en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
# Git
ENV GIT_USER_GROUPS docker
ENV GIT_USERS=
ENV GITHUB_USERS=
USER root
# (curl -sSL https://get.docker.com/ | sh) && \
RUN apt-get update && \
apt-get install -y \
locales \
realpath \
openssh-server \
curl \
git \
vim && \
mkdir -p /var/run/sshd && \
sed -i 's:session\s*required\s*pam_loginuid.so:session optional pam_loginuid.so:g' /etc/pam.d/sshd && \
([ -f /etc/ssh/ssh_host_rsa_key ] || ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key) && \
locale-gen $LANGUAGE && \
dpkg-reconfigure locales && \
echo "$TIMEZONE" > /etc/timezone && \
dpkg-reconfigure -f noninteractive tzdata && \
ln -s /home/docker /var/lib/docker && \
groupadd -g $DOCKER_GID docker
ADD app/ /armada
ADD start /start
EXPOSE 22
ENTRYPOINT ["/start"]