Spaces:
Runtime error
Runtime error
first push
Browse files- Dockerfile +35 -0
Dockerfile
ADDED
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
2 |
+
|
3 |
+
FROM rocker/shiny
|
4 |
+
|
5 |
+
RUN apt-get update && apt-get install -y \
|
6 |
+
--no-install-recommends \
|
7 |
+
git-core \
|
8 |
+
libssl-dev \
|
9 |
+
libcurl4-gnutls-dev \
|
10 |
+
curl \
|
11 |
+
libsodium-dev \
|
12 |
+
libxml2-dev \
|
13 |
+
libicu-dev \
|
14 |
+
&& apt-get clean \
|
15 |
+
&& rm -rf /var/lib/apt/lists/*
|
16 |
+
|
17 |
+
ENV _R_SHLIB_STRIP_=true
|
18 |
+
|
19 |
+
COPY Rprofile.site /etc/R
|
20 |
+
|
21 |
+
RUN install2.r --error --skipinstalled \
|
22 |
+
shiny \
|
23 |
+
forecast \
|
24 |
+
jsonlite \
|
25 |
+
ggplot2 \
|
26 |
+
htmltools \
|
27 |
+
plotly
|
28 |
+
|
29 |
+
COPY ./app/* /srv/shiny-server/
|
30 |
+
|
31 |
+
USER shiny
|
32 |
+
|
33 |
+
EXPOSE 3838
|
34 |
+
|
35 |
+
CMD ["/usr/bin/shiny-server"]
|