Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
|
|
| 1 |
FROM rocker/r-base:latest
|
| 2 |
|
| 3 |
WORKDIR /code
|
| 4 |
|
|
|
|
| 5 |
RUN install2.r --error \
|
| 6 |
shiny \
|
| 7 |
dplyr \
|
| 8 |
ggplot2 \
|
| 9 |
readr \
|
| 10 |
ggExtra
|
| 11 |
-
|
|
|
|
| 12 |
COPY . .
|
| 13 |
|
|
|
|
| 14 |
CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]
|
|
|
|
|
|
| 1 |
+
# Dockerfile for the Shiny app illustrating K=3 Largest-Group-Wins behavior
|
| 2 |
FROM rocker/r-base:latest
|
| 3 |
|
| 4 |
WORKDIR /code
|
| 5 |
|
| 6 |
+
# Install additional R packages via install2.r
|
| 7 |
RUN install2.r --error \
|
| 8 |
shiny \
|
| 9 |
dplyr \
|
| 10 |
ggplot2 \
|
| 11 |
readr \
|
| 12 |
ggExtra
|
| 13 |
+
|
| 14 |
+
# Copy all local files (including the Shiny app code) into the Docker image
|
| 15 |
COPY . .
|
| 16 |
|
| 17 |
+
# Default command to launch the Shiny app on port 7860, listening on all interfaces
|
| 18 |
CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]
|
| 19 |
+
|