Dockerfile 784 B

1234567891011121314151617181920212223
  1. FROM docker.shemic.com/os/alpine/glibc:latest
  2. MAINTAINER Rabin "https://github.com/shemic"
  3. WORKDIR /root
  4. # set environment variable
  5. ENV JAVA_HOME=/share/lib/jdk
  6. ENV PATH=${PATH}:${JAVA_HOME}/bin:${JAVA_HOME}/sbin
  7. COPY ssh_config /root/.ssh/config
  8. # intall ssh... [del bash-completion]
  9. RUN apk add --no-cache --update openssh rsync procps bash ncurses curl && \
  10. ssh-keygen -t rsa -f /root/.ssh/id_rsa -P '' && \
  11. cat /root/.ssh/id_rsa.pub >> /root/.ssh/authorized_keys && \
  12. ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -P '' && \
  13. ssh-keygen -t rsa -f /etc/ssh/ssh_host_dsa_key -P '' && \
  14. ssh-keygen -t rsa -f /etc/ssh/ssh_host_ecdsa_key -P '' && \
  15. ssh-keygen -t rsa -f /etc/ssh/ssh_host_ed25519_key -P '' && \
  16. chmod -R 600 /root/.ssh/*
  17. COPY init.sh /entrypoint/init.sh