|
@@ -1,19 +1,19 @@
|
|
|
FROM debian:9
|
|
|
EXPOSE 8000
|
|
|
-
|
|
|
+# install app
|
|
|
RUN apt-get update && apt-get install -yq python git wget vim tmux graphviz php-cli php-mysql php-curl php-amqplib php-xml php-zip build-essential unzip php-bcmath php-mbstring mysql-client php-dom
|
|
|
-
|
|
|
+# install composer
|
|
|
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
|
|
|
RUN php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
|
|
|
RUN php composer-setup.php --install-dir=/usr/local/bin --filename=composer
|
|
|
RUN php -r "unlink('composer-setup.php');"
|
|
|
-
|
|
|
+# add keys ssh from hosts
|
|
|
RUN mkdir ~/.ssh
|
|
|
-RUN ssh-keyscan -H bitbucket.org >> ~/.ssh/known_hosts
|
|
|
+RUN ssh-keyscan -H -p 22 bitbucket.org >> ~/.ssh/known_hosts
|
|
|
RUN ssh-keyscan -H -p 222 infra.flowdat.com >> ~/.ssh/known_hosts
|
|
|
RUN ssh-keyscan -H -p 222 gogs.infra.flowdat.com >> ~/.ssh/known_hosts
|
|
|
RUN ssh-keyscan -H -p 222 200.50.168.30 >> ~/.ssh/known_hosts
|
|
|
RUN ssh-keyscan -H -p 222 infra.flowdat.com >> ~/.ssh/known_hosts
|
|
|
-
|
|
|
+# add key to container
|
|
|
ADD keys /opt/keys
|
|
|
RUN chmod 0600 /opt/keys/*
|