提交 8cd59b8e 编写于 作者: Y Yu Yang 提交者: GitHub

Merge pull request #736 from wangkuiyi/more-dockerfile-args

Add more customizable ARGs with default values to Dockerfiles.
...@@ -13,8 +13,15 @@ RUN pip install -U BeautifulSoup docopt PyYAML pillow \ ...@@ -13,8 +13,15 @@ RUN pip install -U BeautifulSoup docopt PyYAML pillow \
sphinx sphinx_rtd_theme breathe recommonmark sphinx sphinx_rtd_theme breathe recommonmark
ARG WITH_AVX ARG WITH_AVX
ENV WITH_AVX=${WITH_AVX:-ON} ARG WITH_DOC
ARG WITH_SWIG_PY
ARG WITH_STYLE_CHECK
ENV WITH_GPU=OFF ENV WITH_GPU=OFF
ENV WITH_AVX=${WITH_AVX:-ON}
ENV WITH_DOC=${WITH_DOC:-ON}
ENV WITH_SWIG_PY=${WITH_SWIG_PY:-ON}
ENV WITH_STYLE_CHECK=${WITH_STYLE_CHECK:-OFF}
RUN mkdir /paddle RUN mkdir /paddle
COPY . /paddle/ COPY . /paddle/
......
...@@ -13,8 +13,15 @@ RUN pip install -U BeautifulSoup docopt PyYAML pillow \ ...@@ -13,8 +13,15 @@ RUN pip install -U BeautifulSoup docopt PyYAML pillow \
sphinx sphinx_rtd_theme breathe recommonmark sphinx sphinx_rtd_theme breathe recommonmark
ARG WITH_AVX ARG WITH_AVX
ENV WITH_AVX=${WITH_AVX:-ON} ARG WITH_DOC
ARG WITH_SWIG_PY
ARG WITH_STYLE_CHECK
ENV WITH_GPU=ON ENV WITH_GPU=ON
ENV WITH_AVX=${WITH_AVX:-ON}
ENV WITH_DOC=${WITH_DOC:-ON}
ENV WITH_SWIG_PY=${WITH_SWIG_PY:-ON}
ENV WITH_STYLE_CHECK=${WITH_STYLE_CHECK:-OFF}
RUN mkdir /paddle RUN mkdir /paddle
COPY . /paddle/ COPY . /paddle/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册