Created
March 6, 2022 10:35
-
-
Save Inkimar/2c25f3543428f69c12d8db348d606501 to your computer and use it in GitHub Desktop.
Dockerfile, ukraina
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM rocker/r-ubuntu:20.04 | |
LABEL maintainer="inkimar <inkimar>" | |
RUN apt-get update && apt-get install -y --no-install-recommends \ | |
sudo \ | |
libcurl4-gnutls-dev \ | |
libcairo2-dev \ | |
libxt-dev \ | |
libssl-dev \ | |
libssh2-1-dev \ | |
&& rm -rf /var/lib/apt/lists/* | |
# custom packages, my addition | |
RUN sudo su - -c "R -e \"install.packages(c('DT','devtools','remotes','dplyr','dbplyr','shinyjs','sf','leaflet','leafpop','mapview'), repos='http://cran.rstudio.com/')\"" | |
RUN echo "local(options(shiny.port = 3838, shiny.host = '0.0.0.0'))" > /usr/lib/R/etc/Rprofile.site | |
RUN addgroup --system app \ | |
&& adduser --system --ingroup app app | |
WORKDIR /home/app | |
COPY app . | |
RUN chown app:app -R /home/app | |
USER app | |
EXPOSE 3838 | |
CMD ["R", "-e", "shiny::runApp('/home/app')"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Got h3jsr to work, see my fork: https://gist.github.com/jilleJr/276ff88abdbf0096a3030568986ff361
diff: https://gist.github.com/jilleJr/276ff88abdbf0096a3030568986ff361/revisions#diff-dd2c0eb6ea5cfc6c4bd4eac30934e2d5746747af48fef6da689e85b752f39557