Created
July 27, 2017 15:00
-
-
Save schors/0905600dd98f0b14d588fc1ab5cbb2a3 to your computer and use it in GitHub Desktop.
Environment container php 7.1 Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.1-cli | |
RUN apt-get update && apt-get install -y \ | |
openssl \ | |
bash \ | |
locales \ | |
man \ | |
vim \ | |
curl \ | |
wget \ | |
bzip2 \ | |
mariadb-client \ | |
git \ | |
tmux \ | |
openssh-client \ | |
openssh-sftp-server | |
RUN curl -sS https://getcomposer.org/installer | php \ | |
&& mv composer.phar /usr/local/bin/ \ | |
&& ln -s /usr/local/bin/composer.phar /usr/local/bin/composer | |
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/cron | |
COPY cron_entrypoint.sh /entrypoint.sh | |
COPY crontab /etc/crontab | |
RUN rm -f /cron.d/* | |
RUN ln -sf /var/opt/docker-env-etc/passwd /etc/passwd \ | |
&& ln -sf /var/opt/docker-env-etc/group /etc/group \ | |
&& ln -sf /var/opt/docker-env-etc/shadow /etc/shadow \ | |
&& ln -sf /var/opt/docker-env-etc/gshadow /etc/gshadow | |
ENTRYPOINT ["/entrypoint.sh"] | |
CMD [ "/usr/sbin/cron", "-f", "-L", "8"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment