Docker java.lang.RuntimeException当试图build立错误

我是Docker的新手,并试图将其用于Mac上的Netbeans项目之一。

我的docker文件在下面。

FROM ubuntu:latest MAINTAINER "Joe" <joe@fakewebsitefornow.com> # Install apache, PHP, and supplimentary programs. openssh-server, curl, and lynx-cur are for debugging the container. RUN apt-get update && apt-get -y upgrade && DEBIAN_FRONTEND=noninteractive apt-get -y install \ apache2 php7.0 php7.0-mysql libapache2-mod-php7.0 curl lynx-cur # Enable apache mods. RUN a2enmod php7.0 RUN a2enmod rewrite # Update the PHP.ini file, enable <? ?> tags and quieten logging. RUN sed -i "s/short_open_tag = Off/short_open_tag = On/" /etc/php/7.0/apache2/php.ini RUN sed -i "s/error_reporting = .*$/error_reporting = E_ERROR | E_WARNING | E_PARSE/" /etc/php/7.0/apache2/php.ini # Manually set up the apache environment variables ENV APACHE_RUN_USER www-data ENV APACHE_RUN_GROUP www-data ENV APACHE_LOG_DIR /var/log/apache2 ENV APACHE_LOCK_DIR /var/lock/apache2 ENV APACHE_PID_FILE /var/run/apache2.pid # Expose apache. EXPOSE 80 # Copy this repo into place. ADD www /var/www/site # Update the default apache site with the config we created. ADD apache-config.conf /etc/apache2/sites-enabled/000-default.conf # By default start up apache in the foreground, override with /bin/bash for interative. CMD /usr/sbin/apache2ctl -D FOREGROUND 

我正在使用netbeans 8.2并从那里build立我的Dockerfile。 我像这样设置我的目录。

 MyWebsite -- www -- Dockerfile -- apache-config.conf 

尝试构build时出现以下错误。

java.lang.RuntimeException:文件名'www / templates / vendor / symfony / console / Tests / Fixtures / application_renderexception_doublewidth1decorated.txt'太长(> 100字节)

之前的错误是很多看起来像这样的声明..

 Sending file Dockerfile Sending file .DS_Store Sending file apache-config.conf Sending file .git/index Sending file .git/FETCH_HEAD Sending file .git/config Sending file .git/HEAD Sending file www/index.php Sending file www/compileless.sh Sending file www/configlocal.php Sending file www/configdev.php... (shortened for brevity) 

不知道它是否应该像这样发送我的网站?

我假设一些与Linux和Mac之间的文件名规则? 问题是我无法轻易更改文件名称,因为它是通过作曲者下载的供应商!

任何帮助表示赞赏,帮助我build立这个形象,我不知道该怎么做。

如果你想模拟我的依赖这里是我的composer.json下面。

 { "require": { "slim/slim": "^3.0", "slim/twig-view": "^2.1", "doctrine/orm": "^2.5", "components/jquery": "*", "components/normalize.css": "*", "robloach/component-installer": "*", "paragonie/random_compat": "^2.0" }, "autoload": { "psr-4": {"app\\":"app","entities\\":"entities"}, "files": ["lib/utilities.php","lib/security.php"] } }