-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (39 loc) · 1.32 KB
/
Dockerfile
File metadata and controls
47 lines (39 loc) · 1.32 KB
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
# Based on the deprecated `https://github.com/tutumcloud/tutum-debian`
FROM debian:sid
# Set noninteractive to avoid tz/locale prompts
ENV DEBIAN_FRONTEND=noninteractive
# Install packages
RUN apt-get update && \
apt-get -y install \
dos2unix \
openssh-server \
openjdk-8-jdk \
pwgen \
locales \
&& \
mkdir -p /var/run/sshd && \
sed -i "s/UsePrivilegeSeparation.*/UsePrivilegeSeparation no/g" /etc/ssh/sshd_config && \
sed -i "s/PermitRootLogin without-password/PermitRootLogin yes/g" /etc/ssh/sshd_config && \
# Configure UTF-8 locale
sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen en_US.UTF-8 && \
update-locale LANG=en_US.UTF-8
# Make sure locale is exported in all shells
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8
ENV AUTHORIZED_KEYS **None**
ADD run.sh /run.sh
RUN dos2unix /run.sh \
&& chmod +x /*.sh
RUN apt-get update
RUN apt install -y apt-transport-https
RUN apt install -y software-properties-common
RUN apt-get update && apt-get install -y maven
RUN apt-get install -y \
sudo net-tools wget \
curl vim man faketime unzip less \
iptables iputils-ping logrotate
# apt-get remove -y --purge --auto-remove systemd
EXPOSE 22
CMD ["/run.sh"]