Commit 5a25d98f authored by Conor Anderson's avatar Conor Anderson

Even, even more cleanup

parent 2ad1b984
packrat/lib*
packrat/src
.dockerignore
.git
.gitignore
.Rhistory
.Rproj.user
FROM trestletech/plumber
MAINTAINER Conor Anderson <[email protected]>
COPY app/plumber.R /app/plumber.R
COPY api/plumber.R /api/plumber.R
RUN apt-get update &&\
apt-get install -y --no-install-recommends curl libnetcdf-dev &&\
apt-get clean && rm -rf /tmp/* /var/lib/apt/lists/*
RUN cd /app &&\
RUN cd /api &&\
sed -rn 's/library\((.*)\)/\1/p' plumber.R | sort | uniq > needed_packages &&\
curl https://gitlab.com/ConorIA/conjuntool/snippets/1788463/raw?inline=false > install_pkgs.R &&\
Rscript install_pkgs.R &&\
rm -rf /tmp/* needed_packages install_pkgs.R
CMD ["/app/plumber.R"]
CMD ["/api/plumber.R"]
Dockerfile
local_settings*
*.Rproj
packrat/lib*
packrat/src
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment