Spaces:
Sleeping
Sleeping
try it as tmp file and installing sqlite3
Browse files- Dockerfile +4 -9
Dockerfile
CHANGED
|
@@ -11,6 +11,7 @@ RUN set -eux; \
|
|
| 11 |
apt-get install -y --no-install-recommends \
|
| 12 |
git \
|
| 13 |
sudo \
|
|
|
|
| 14 |
ca-certificates \
|
| 15 |
gcc \
|
| 16 |
libc6-dev \
|
|
@@ -35,12 +36,10 @@ RUN set -eux; \
|
|
| 35 |
rm -rf /var/lib/apt/lists/*;
|
| 36 |
|
| 37 |
# Install R packages
|
| 38 |
-
RUN install2.r --error -s --deps TRUE
|
| 39 |
-
htmltools tidyverse zeallot rlang glue this.path DBI pool RSQLite remotes promises assertthat log
|
| 40 |
RUN Rscript -e "install.packages('b64', repos = c('https://extendr.r-universe.dev', getOption('repos')))"
|
| 41 |
RUN Rscript -e "install.packages('uwu', repos = c('https://josiahparry.r-universe.dev', getOption('repos')))"
|
| 42 |
-
RUN installGithub.r
|
| 43 |
-
devOpifex/ambiorix devOpifex/scilis devOpifex/signaculum jrosell/ambhtmx
|
| 44 |
|
| 45 |
|
| 46 |
# Prepare a user
|
|
@@ -53,11 +52,7 @@ COPY --chown=user . $HOME/app
|
|
| 53 |
|
| 54 |
# Entry
|
| 55 |
EXPOSE 7860
|
| 56 |
-
CMD R -e "print(nchar(Sys.getenv('GITHUB_PAT'))); source('app.R'); "
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
|
| 62 |
|
| 63 |
|
|
|
|
| 11 |
apt-get install -y --no-install-recommends \
|
| 12 |
git \
|
| 13 |
sudo \
|
| 14 |
+
sqlite3 \
|
| 15 |
ca-certificates \
|
| 16 |
gcc \
|
| 17 |
libc6-dev \
|
|
|
|
| 36 |
rm -rf /var/lib/apt/lists/*;
|
| 37 |
|
| 38 |
# Install R packages
|
| 39 |
+
RUN install2.r --error -s --deps TRUE htmltools tidyverse zeallot rlang glue this.path DBI pool RSQLite remotes promises assertthat log here
|
|
|
|
| 40 |
RUN Rscript -e "install.packages('b64', repos = c('https://extendr.r-universe.dev', getOption('repos')))"
|
| 41 |
RUN Rscript -e "install.packages('uwu', repos = c('https://josiahparry.r-universe.dev', getOption('repos')))"
|
| 42 |
+
RUN installGithub.r devOpifex/ambiorix devOpifex/scilis devOpifex/signaculum jrosell/ambhtmx
|
|
|
|
| 43 |
|
| 44 |
|
| 45 |
# Prepare a user
|
|
|
|
| 52 |
|
| 53 |
# Entry
|
| 54 |
EXPOSE 7860
|
| 55 |
+
CMD R -e "print(nchar(Sys.getenv('GITHUB_PAT'))); print(here::here()); ; tmp_file <- tempfile(); writeLines('Created', tmp_file); if (file.exists(tmp_file)) {unlink(tmp_file); print('Deleted')}; options('ambiorix.dbname'=paste0(tmp_file,".sqlite")); source('app.R'); "
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
|
| 57 |
|
| 58 |
|