-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (21 loc) · 840 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
FROM ubuntu:14.04
MAINTAINER Philipp Schrader <[email protected]>
RUN echo LANG=C >> /etc/profile
# Install the necessary software components.
RUN DEBIAN_FRONTEND=noninteractive apt-get -yq update
RUN DEBIAN_FRONTEND=noninteractive apt-get -yq upgrade
RUN DEBIAN_FRONTEND=noninteractive apt-get -yq --no-install-recommends \
install openssh-server tmux
# Add a guest user that people will use to SSH into the container.
RUN adduser --system --group --shell /usr/bin/guest-login guest
RUN passwd -d guest
# Add necessary run-time folders.
RUN mkdir -p /var/run/sshd
RUN mkdir -p /var/lib/tmux-sessions
# Copy in the appropriate files.
ADD sshd_config /etc/ssh/sshd_config
ADD guest-login /usr/bin/guest-login
RUN chmod +x /usr/bin/guest-login
# Enable standard SSH in the container.
CMD ["/usr/sbin/sshd", "-D"]
EXPOSE 22