Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM openjdk:8-stretch
- ENV DEBIAN_FRONTEND noninteractive
- RUN apt-get update && apt-get install -y openssh-server \
- apt-transport-https \
- ca-certificates \
- curl \
- software-properties-common \
- gnupg \
- bash-completion
- RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
- RUN echo 'deb https://download.docker.com/linux/debian stretch stable' > /etc/apt/sources.list.d/docker.list
- RUN apt-get update && apt-get install -y docker-ce
- COPY authorized_keys /root/.ssh/authorized_keys
- RUN mkdir /run/sshd
- COPY swarmt.crt /usr/local/share/ca-certificates
- RUN update-ca-certificates
- RUN apt-get install -y python3 python3-yaml
- COPY checkmount.py /checkmount.py
- COPY check_volumes_in_dockerfile.sh /check_volumes_in_dockerfile.sh
- RUN chmod +x /check_volumes_in_dockerfile.sh
- RUN apt-get install -y python3-pip
- RUN pip3 install j2cli
- CMD /usr/sbin/sshd -D
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement