Spaces:
Runtime error
Runtime error
more
Browse files- Dockerfile +4 -0
- app.R +10 -0
Dockerfile
CHANGED
@@ -2,6 +2,8 @@
|
|
2 |
|
3 |
FROM rocker/shiny
|
4 |
|
|
|
|
|
5 |
RUN apt-get update && apt-get install -y \
|
6 |
--no-install-recommends \
|
7 |
git-core \
|
@@ -16,6 +18,8 @@ RUN apt-get update && apt-get install -y \
|
|
16 |
|
17 |
ENV _R_SHLIB_STRIP_=true
|
18 |
|
|
|
|
|
19 |
RUN install2.r --error --skipinstalled \
|
20 |
shiny \
|
21 |
forecast \
|
|
|
2 |
|
3 |
FROM rocker/shiny
|
4 |
|
5 |
+
RUN useradd -m -u 1000 shiny
|
6 |
+
|
7 |
RUN apt-get update && apt-get install -y \
|
8 |
--no-install-recommends \
|
9 |
git-core \
|
|
|
18 |
|
19 |
ENV _R_SHLIB_STRIP_=true
|
20 |
|
21 |
+
COPY ./app/* /srv/shiny-server/
|
22 |
+
|
23 |
RUN install2.r --error --skipinstalled \
|
24 |
shiny \
|
25 |
forecast \
|
app.R
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
library(shiny)
|
2 |
+
|
3 |
+
ui <- fluidPage(
|
4 |
+
titlePanel("Example Shiny Application")
|
5 |
+
)
|
6 |
+
|
7 |
+
server <- function(input, output) {
|
8 |
+
}
|
9 |
+
|
10 |
+
shinyApp(ui = ui, server = server)
|