Update Dockerfile
Browse files- Dockerfile +25 -5
Dockerfile
CHANGED
|
@@ -2,13 +2,33 @@ 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
-
|
|
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /code
|
| 4 |
|
| 5 |
+
# Install system dependencies for building R packages and GitHub installs
|
| 6 |
+
RUN apt-get update && apt-get install -y \
|
| 7 |
+
git \
|
| 8 |
+
libcurl4-openssl-dev \
|
| 9 |
+
libssl-dev \
|
| 10 |
+
libgit2-dev \
|
| 11 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
+
|
| 13 |
+
# Install required R packages
|
| 14 |
RUN install2.r --error \
|
| 15 |
shiny \
|
|
|
|
| 16 |
ggplot2 \
|
| 17 |
+
tidyr \
|
| 18 |
+
scales \
|
| 19 |
+
dplyr \
|
| 20 |
readr \
|
| 21 |
+
ggExtra \
|
| 22 |
+
remotes
|
| 23 |
+
|
| 24 |
+
# Install DescriptiveRepresentationCalculator from GitHub
|
| 25 |
+
RUN R -e "remotes::install_github('cjerzak/DescriptiveRepresentationCalculator-software/DescriptiveRepresentationCalculator')"
|
| 26 |
+
|
| 27 |
+
# Copy app code
|
| 28 |
+
COPY . /code
|
| 29 |
+
|
| 30 |
+
# Expose Shiny port
|
| 31 |
+
EXPOSE 7860
|
| 32 |
|
| 33 |
+
# Launch the Shiny app
|
| 34 |
+
CMD ["R", "--quiet", "-e", "shiny::runApp('/code', host='0.0.0.0', port=7860)"]
|