我想安裝PHP 5.6.30 fp,但我得到錯誤。 錯誤與此處相同(Docker) Getting error: docker-php-source: no such file or directory when building docker fileDocker PHP圖像。 lstat docker-php-source:沒有這樣的文件或目錄
但我無法理解如何解決此問題。 我的文件夾看起來像
應用 --docker --workspace
內部工作區Dockerfile我從https://github.com/docker-library/php/blob/eadc27f12cfec58e270f8e37cd1b4ae9abcbb4eb/5.6/fpm/Dockerfile
Step 15/22 : COPY docker-php-source /usr/local/bin/ ERROR: Service 'workspace' failed to build: lstat docker-php-source: no such file or directory
所以我必須做的所有粘貼? 我做了這個命令碼頭拉的PHP之前,它沒有幫助。
所以我有這個文件.yml
內部工作區/ Dockerfile我已經從GitHub圖像6.6.30fpm所有字符串 那麼這個文件夾內我做 泊塢窗,撰寫構建工作區
在此之前,在工作區我有另一個設置
FROM ubuntu:14.04
ENV DEBIAN_FRONTEND noninteractive
RUN \
sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \
apt-get update && \
apt-get -y upgrade && \
apt-get install -y build-essential && \
apt-get install -y software-properties-common && \
apt-get install -y byobu curl git htop man unzip vim wget nano locate
RUN apt-get update --fix-missing --allow-unauthenticated
RUN apt-get install -y --allow-unauthenticated libmcrypt-dev libxml2-dev mysql-client
RUN apt-get update -y --allow-unauthenticated && apt-get upgrade -y --allow-unauthenticated && apt-get install -q -y php5 php5-dev php5-fpm php5-mysqlnd php5-mcrypt
RUN echo "extension=/usr/lib/php5/20121212/mcrypt.so" > /etc/php5/mods-available/mcrypt.ini \
&& ln -s /etc/php5/mods-available/mcrypt.ini /etc/php5/cli/conf.d/20-mcrypt.ini
RUN curl -sS https://getcomposer.org/installer | php
RUN mv composer.phar /usr/local/bin/composer
WORKDIR /var/www/html
# Clean up APT when done.
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
和這個工程,但我想要5.6.30而不是5.5.9
你確定[所有這些文件](https://github.com/docker-library/php/tree/master/5.6/fpm)存在嗎? – spiil
你的意思是? 哪些文件? 我剛剛開始與碼頭工作,我閱讀文檔和獲取碼頭開始。所以這對我來說都是新的。 我認爲這個圖像像package.json。複製,粘貼和npm安裝:))但這是不同的 –
我應該需要從git克隆https://github.com/docker-library/php所有圖像,然後再試一次?但它是愚蠢的拉動所有圖像,如果我需要一個 –