install docker cli tool

This commit is contained in:
Christopher 2020-10-24 13:07:40 +02:00
parent 9fcbac8dc1
commit c8aca587e0
1 changed files with 5 additions and 0 deletions

View File

@ -2,6 +2,11 @@ FROM sahrea/webserver
WORKDIR /var/www/html
RUN apt-get update && apt-get -y install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
RUN add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
RUN apt-get update && apt-get -y install docker-ce-cli
RUN touch /var/run/docker.sock && chmod 777 /var/run/docker.sock
COPY index.php /var/www/html/index.php