我有一个 dockerfile 如下
但是当我运行它并检查日志时,它说,“ARGUMENT 'plumber_2.R'被忽略了”。我也尝试过不同的端口。
我尝试过使用不同的端口但失败了
FROM r-base:3.5.1
# Install Ubuntu packages
RUN apt-get update && apt-get install -y \
sudo \
gdebi-core \
pandoc \
pandoc-citeproc \
libcurl4-gnutls-dev \
libcairo2-dev/unstable \
libxt-dev \
libssl-dev
## RUN R -e 'install.packages(c("devtools"))'
## RUN R -e 'devtools::install_github("trestletech/plumber")'
#
RUN install2.r plumber
RUN R -e "install.packages(c('MLmetrics','datasets','tsDyn','ggplot2','zoo','forecast'), repos='http://cran.rstudio.com/')"
WORKDIR /usr/plumberR
COPY . /usr/plumberR
RUN sudo apt-get install curl
EXPOSE 8000
ENTRYPOINT ["R", "-e", "pr <- plumber::plumb(commandArgs()[4]); pr$run(host='0.0.0.0', port=8000)"]
CMD ["plumber_2.R"]
expected is the output but I am getting "ARGUMENT ["plumbr_2.R"] __ignored__