PHP Classes

File: dev/docker/app/Dockerfile

Recommend this page to a friend!
  Classes of Sergii Pryz   PHP Cache Manager Wrapper   dev/docker/app/Dockerfile   Download  
File: dev/docker/app/Dockerfile
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Cache Manager Wrapper
Wrap over cache classes to optimize cache requests
Author: By
Last change: Updated Docker's readme. Updated Doeckerfile: workdir, composer.
Date: 7 years ago
Size: 1,525 bytes


Class file image Download
FROM ubuntu:16.04 RUN apt-get update # php RUN apt-get -y install php7.0 RUN apt-get -y install php7.0-xml RUN apt-get -y install php7.0-curl RUN apt-get -y install php7.0-zip RUN apt-get -y install php7.0-intl # graphviz RUN apt-get -y install graphviz # git RUN apt-get -y install git # composer RUN php -r "file_put_contents('composer-setup.php', file_get_contents(''));" RUN php -r "if (hash_file('SHA384', 'composer-setup.php') === 'aa96f26c2b67226a324c27919f1eb05f21c248b987e6195cad9690d5c1ff713d53020a02ac8c217dbf90a7eacc9d141d') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" RUN php composer-setup.php RUN php -r "unlink('composer-setup.php');" RUN mv composer.phar /usr/local/bin/composer # ssh, source with correction RUN apt-get -y install openssh-server RUN mkdir /var/run/sshd RUN echo 'root:screencast' | chpasswd RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config # SSH login fix. Otherwise user is kicked off after login RUN sed 's@session\s*required\s* optional' -i /etc/pam.d/sshd ENV NOTVISIBLE "in users profile" RUN echo "export VISIBLE=now" >> /etc/profile EXPOSE 22 CMD ["/usr/sbin/sshd", "-D"] # volume RUN mkdir /CacheManager VOLUME /CacheManager # workdir WORKDIR /CacheManager