Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse filesFailed to generate the report: LaTeX failed to compile /tmp/Rtmp8WT9ET/file17210e187.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See file17210e187.log for more info.
- Dockerfile +1 -7
Dockerfile
CHANGED
|
@@ -1,19 +1,15 @@
|
|
| 1 |
-
# Start with the base R image
|
| 2 |
FROM rocker/r-base:latest
|
| 3 |
|
| 4 |
-
# Set working directory
|
| 5 |
WORKDIR /code
|
| 6 |
|
| 7 |
-
# Install system dependencies, including Pandoc
|
| 8 |
RUN apt-get update && apt-get install -y \
|
| 9 |
pandoc \
|
| 10 |
wget \
|
| 11 |
&& apt-get clean
|
| 12 |
|
| 13 |
-
# Install TinyTeX for LaTeX support
|
| 14 |
RUN R -e "install.packages('tinytex'); tinytex::install_tinytex()"
|
|
|
|
| 15 |
|
| 16 |
-
# Install required R packages
|
| 17 |
RUN install2.r --error \
|
| 18 |
shiny \
|
| 19 |
dplyr \
|
|
@@ -23,8 +19,6 @@ RUN install2.r --error \
|
|
| 23 |
rmarkdown \
|
| 24 |
knitr
|
| 25 |
|
| 26 |
-
# Copy application code
|
| 27 |
COPY . .
|
| 28 |
|
| 29 |
-
# Set the command to run the Shiny app
|
| 30 |
CMD ["R", "--quiet", "-e", "shiny::runApp('.', host='0.0.0.0', port=7860)"]
|
|
|
|
|
|
|
| 1 |
FROM rocker/r-base:latest
|
| 2 |
|
|
|
|
| 3 |
WORKDIR /code
|
| 4 |
|
|
|
|
| 5 |
RUN apt-get update && apt-get install -y \
|
| 6 |
pandoc \
|
| 7 |
wget \
|
| 8 |
&& apt-get clean
|
| 9 |
|
|
|
|
| 10 |
RUN R -e "install.packages('tinytex'); tinytex::install_tinytex()"
|
| 11 |
+
RUN R -e "tinytex::tlmgr_install(c('amsmath', 'geometry', 'graphicx', 'xcolor', 'fancyhdr', 'sectsty', 'hyperref', 'fontspec'))"
|
| 12 |
|
|
|
|
| 13 |
RUN install2.r --error \
|
| 14 |
shiny \
|
| 15 |
dplyr \
|
|
|
|
| 19 |
rmarkdown \
|
| 20 |
knitr
|
| 21 |
|
|
|
|
| 22 |
COPY . .
|
| 23 |
|
|
|
|
| 24 |
CMD ["R", "--quiet", "-e", "shiny::runApp('.', host='0.0.0.0', port=7860)"]
|