Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +25 -2
Dockerfile
CHANGED
@@ -2,18 +2,41 @@ FROM rocker/shiny-verse:latest
|
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
# Install stable packages from CRAN
|
6 |
RUN install2.r --error \
|
7 |
ggExtra \
|
8 |
shiny \
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
# Install development packages from GitHub
|
12 |
RUN installGithub.r \
|
13 |
rstudio/bslib \
|
14 |
rstudio/httpuv
|
15 |
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
CMD ["quarto", "serve", "test.qmd", "--port", "7860", "--host", "0.0.0.0"]
|
19 |
#CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]
|
|
|
2 |
|
3 |
WORKDIR /code
|
4 |
|
5 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
6 |
+
pandoc \
|
7 |
+
pandoc-citeproc \
|
8 |
+
curl \
|
9 |
+
gdebi-core \
|
10 |
+
&& rm -rf /var/lib/apt/lists/*
|
11 |
+
|
12 |
# Install stable packages from CRAN
|
13 |
RUN install2.r --error \
|
14 |
ggExtra \
|
15 |
shiny \
|
16 |
+
jsonlite \
|
17 |
+
ggplot2 \
|
18 |
+
htmltools \
|
19 |
+
remotes \
|
20 |
+
renv \
|
21 |
+
knitr \
|
22 |
+
rmarkdown \
|
23 |
+
quarto
|
24 |
|
25 |
# Install development packages from GitHub
|
26 |
RUN installGithub.r \
|
27 |
rstudio/bslib \
|
28 |
rstudio/httpuv
|
29 |
|
30 |
+
RUN curl -LO https://quarto.org/download/latest/quarto-linux-amd64.deb
|
31 |
+
RUN gdebi --non-interactive quarto-linux-amd64.deb
|
32 |
+
|
33 |
+
RUN useradd -m -u 1000 user
|
34 |
+
USER user
|
35 |
+
ENV HOME=/home/user \
|
36 |
+
PATH=/home/user/.local/bin:$PATH
|
37 |
+
WORKDIR $HOME/app
|
38 |
+
|
39 |
+
COPY --chown=user . $HOME/app
|
40 |
|
41 |
CMD ["quarto", "serve", "test.qmd", "--port", "7860", "--host", "0.0.0.0"]
|
42 |
#CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]
|