mirror of
/repos/baseimage-docker.git
synced 2025-12-30 08:01:31 +01:00
You can user `ENV` directive in Dockerfile to disable the installation for some services or change `image/buildconfig`. The flags are : DISABLE_SSHD DISABLE_CRON DISABLE_SYSLOG
9 lines
263 B
Bash
Executable File
9 lines
263 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
if [[ ! -e /etc/service/sshd/down && ! -e /etc/ssh/ssh_host_rsa_key ]] || [[ "$1" == "-f" ]]; then
|
|
echo "No SSH host key available. Generating one..."
|
|
export LC_ALL=C
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
dpkg-reconfigure openssh-server
|
|
fi
|