Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using ENV in the Dockerfile #125

Closed
chainsawriot opened this issue Apr 3, 2023 · 0 comments
Closed

Using ENV in the Dockerfile #125

chainsawriot opened this issue Apr 3, 2023 · 0 comments

Comments

@chainsawriot
Copy link
Collaborator

It would make #110 easier to implement.

FROM rocker/r-ver:4.2.2
ENV RANG_PATH rang.R
ENV CACHE_PATH ""
COPY rang.R ./rang.R
RUN apt-get update -qq && apt-get install -y libpcre3-dev zlib1g-dev pkg-config libcurl4-openssl-dev && apt-get install -y libicu-dev libxml2-dev make pandoc zlib1g-dev
RUN Rscript $RANG_PATH
RUN apt-get install -y curl git && \
curl -LO https://quarto.org/download/latest/quarto-linux-amd64.deb && \
dpkg -i quarto-linux-amd64.deb && \
quarto install tool tinytex && \
CMD ["R"]

For example, we can set RANG_PATH to "inst/rang/rang.R"

chainsawriot added a commit that referenced this issue Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant