服务“networking”未能build立:lstat apache / sites-enabled / 000-default.conf:没有这样的文件或目录

我要

# Update the default apache site with the config we created. COPY ./apache/sites-enabled/000-default.conf /etc/apache2/sites-enabled/000-default.conf

我知道我的000-default.confDockerfile不在同一个目录,这就是为什么我想打这样./apache/...但我仍然有错误。

结构体:

 dockerizing-django ├── apache │  └── sites-enabled │  └── 000-default.conf ├── docker-compose.yml ├── production.yml ├── README.md └── web ├── docker_django │  ├── __init__.py │  ├── settings.py │  ├── urls.py │  └── wsgi.py ├── Dockerfile ├── manage.py └── requirements.txt 

和Dockerfile:

 FROM ubuntu:16.04 FROM python:3.5 ENV PYTHONUNBUFFERED 1 RUN cat /etc/passwd RUN cat /etc/group RUN apt-get update && apt-get install -y \ apache2 \ libapache2-mod-wsgi-py3 RUN apt-get install -y openssl RUN mkdir /var/run/sshd 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 RUN mkdir /code WORKDIR /code ADD requirements.txt /code/ RUN pip install -r requirements.txt ADD . /code EXPOSE 80 # Update the default apache site with the config we created. COPY /apache/sites-enabled/000-default.conf /etc/apache2/sites-enabled/000-default.conf RUN chown -R root:www-data /var/www RUN chmod u+rwx,g+rx,o+rx /var/www RUN find /var/www -type d -exec chmod u+rwx,g+rx,o+rx {} + RUN find /var/www -type f -exec chmod u+rw,g+rw,o+r {} + #essentially: CMD ["/usr/sbin/apachectl", "-D", "FOREGROUND"] CMD ["/tmp/start.sh"] 

为什么我不能从Dockerfile打这个文件夹,有人可以解释如何解决这个问题吗?