下面是我的 Dockerfile,无论我尝试什么选项,react-dom.js 文件都不会进入 /app/js/ 位置的容器内。
FROM resin/rpi-raspbian:wheezy
ENV PYTHON_VERSION 2.7.13
# Install dependencies
RUN apt-get update && \
apt-get -y install curl && \
apt-get -y install vim && \
apt-get -y install python2.7-minimal && \
apt-get -y install python-pip && \
apt-get -y install python-dev && \
apt-get -y install gcc && \
rm -rf /var/lib/apt/lists/*
# RUN apt-get -y install vim
RUN mkdir -p /app/js/
VOLUME ["/app/"]
# Define working directory
WORKDIR /app/
RUN curl -sf -o /app/js/react-dom.js -L https://cdnjs.cloudflare.com/ajax/libs/react/15.3.2/react-dom.js