cjerzak's picture
Update Dockerfile
7194dfd verified
raw
history blame contribute delete
773 Bytes
FROM rocker/r-base:latest
WORKDIR /code
# Install system dependencies for building R packages and GitHub installs
RUN apt-get update && apt-get install -y \
git \
libcurl4-openssl-dev \
libssl-dev \
libgit2-dev \
&& rm -rf /var/lib/apt/lists/*
# Install required R packages
RUN install2.r --error \
shiny \
ggplot2 \
tidyr \
scales \
dplyr \
readr \
ggExtra \
remotes
# Install DescriptiveRepresentationCalculator from GitHub
RUN R -e "remotes::install_github('cjerzak/DescriptiveRepresentationCalculator-software/DescriptiveRepresentationCalculator')"
# Copy app code
COPY . /code
# Expose Shiny port
EXPOSE 7860
# Launch the Shiny app
CMD ["R", "--quiet", "-e", "shiny::runApp('/code', host='0.0.0.0', port=7860)"]