OwenStOnge commited on
Commit
136e2fc
·
verified ·
1 Parent(s): d5801a3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -15
Dockerfile CHANGED
@@ -1,31 +1,46 @@
1
- FROM rocker/r-base:latest
2
 
3
  WORKDIR /code
4
 
5
- # System dependencies needed for R packages
6
  RUN apt-get update && apt-get install -y --no-install-recommends \
 
7
  libcurl4-openssl-dev \
8
  libssl-dev \
9
  libxml2-dev \
10
  libfontconfig1-dev \
11
  libfreetype6-dev \
12
  libpng-dev \
13
- libtiff5-dev \
14
  libjpeg-dev \
 
15
  libharfbuzz-dev \
16
  libfribidi-dev \
 
 
 
 
 
17
  python3 \
18
  python3-pip \
 
 
19
  && rm -rf /var/lib/apt/lists/*
20
 
21
- # Install Python huggingface_hub for reticulate
22
- RUN pip3 install --break-system-packages huggingface_hub
23
 
24
- # Install R packages
25
- RUN install2.r --error \
 
 
26
  shiny \
27
  DT \
 
 
 
 
 
28
  htmltools \
 
29
  gt \
30
  gtExtras \
31
  plotly \
@@ -35,14 +50,10 @@ RUN install2.r --error \
35
  reticulate \
36
  recipes \
37
  httr \
38
- fmsb \
39
- dplyr \
40
- tidyr \
41
- stringr \
42
- ggplot2 \
43
- scales \
44
- readr
45
 
46
  COPY . .
47
 
48
- CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]
 
 
 
1
+ FROM rocker/r2u:latest
2
 
3
  WORKDIR /code
4
 
 
5
  RUN apt-get update && apt-get install -y --no-install-recommends \
6
+ ca-certificates \
7
  libcurl4-openssl-dev \
8
  libssl-dev \
9
  libxml2-dev \
10
  libfontconfig1-dev \
11
  libfreetype6-dev \
12
  libpng-dev \
 
13
  libjpeg-dev \
14
+ libtiff5-dev \
15
  libharfbuzz-dev \
16
  libfribidi-dev \
17
+ zlib1g-dev \
18
+ libbz2-dev \
19
+ liblz4-dev \
20
+ libzstd-dev \
21
+ libsnappy-dev \
22
  python3 \
23
  python3-pip \
24
+ python3-dev \
25
+ libpython3-dev \
26
  && rm -rf /var/lib/apt/lists/*
27
 
28
+ # Python packages
29
+ RUN pip3 install huggingface_hub --break-system-packages
30
 
31
+ ENV RETICULATE_PYTHON=/usr/bin/python3
32
+
33
+ # Install CRAN / r2u packages
34
+ RUN install2.r --error --skipinstalled \
35
  shiny \
36
  DT \
37
+ dplyr \
38
+ tidyr \
39
+ readr \
40
+ stringr \
41
+ scales \
42
  htmltools \
43
+ ggplot2 \
44
  gt \
45
  gtExtras \
46
  plotly \
 
50
  reticulate \
51
  recipes \
52
  httr \
53
+ fmsb
 
 
 
 
 
 
54
 
55
  COPY . .
56
 
57
+ EXPOSE 7860
58
+
59
+ CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)