igroffman commited on
Commit
f329288
·
verified ·
1 Parent(s): e1f8016

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -3
Dockerfile CHANGED
@@ -1,16 +1,26 @@
1
  FROM rocker/r2u:latest
2
  WORKDIR /code
3
 
4
- # System dependencies
5
- # (no Python: the app fetches private model files over HTTPS via httr, not reticulate/huggingface_hub)
6
  RUN apt-get update && apt-get install -y --no-install-recommends \
7
  ca-certificates \
8
  libcurl4-openssl-dev \
9
  libssl-dev \
10
  libxml2-dev \
11
  libmagick++-dev \
 
 
 
 
12
  && rm -rf /var/lib/apt/lists/*
13
 
 
 
 
 
 
 
14
  # Heavy R packages (cached separately so they don't rebuild often)
15
  RUN install2.r --error --skipinstalled \
16
  arrow \
@@ -23,16 +33,20 @@ RUN install2.r --error --skipinstalled \
23
  # Lighter R packages (this layer rebuilds if you add/remove packages)
24
  RUN install2.r --error --skipinstalled \
25
  shiny \
 
 
26
  dplyr \
27
  ggplot2 \
28
  gridExtra \
29
  stringr \
 
30
  zip \
31
  png \
32
  jsonlite \
33
  httr \
34
  ggforce \
35
- magick
 
36
 
37
  # Copy app files (changes here won't trigger package reinstall)
38
  COPY . .
 
1
  FROM rocker/r2u:latest
2
  WORKDIR /code
3
 
4
+ # System dependencies + Python (needed by reticulate for the Hugging Face
5
+ # upload step in the Scraping tab)
6
  RUN apt-get update && apt-get install -y --no-install-recommends \
7
  ca-certificates \
8
  libcurl4-openssl-dev \
9
  libssl-dev \
10
  libxml2-dev \
11
  libmagick++-dev \
12
+ python3 \
13
+ python3-pip \
14
+ python3-dev \
15
+ libpython3-dev \
16
  && rm -rf /var/lib/apt/lists/*
17
 
18
+ # huggingface_hub for the dataset upload feature
19
+ RUN pip3 install huggingface_hub --break-system-packages
20
+
21
+ # Tell reticulate which Python to use
22
+ ENV RETICULATE_PYTHON=/usr/bin/python3
23
+
24
  # Heavy R packages (cached separately so they don't rebuild often)
25
  RUN install2.r --error --skipinstalled \
26
  arrow \
 
33
  # Lighter R packages (this layer rebuilds if you add/remove packages)
34
  RUN install2.r --error --skipinstalled \
35
  shiny \
36
+ shinyBS \
37
+ DT \
38
  dplyr \
39
  ggplot2 \
40
  gridExtra \
41
  stringr \
42
+ readr \
43
  zip \
44
  png \
45
  jsonlite \
46
  httr \
47
  ggforce \
48
+ magick \
49
+ reticulate
50
 
51
  # Copy app files (changes here won't trigger package reinstall)
52
  COPY . .