confidence_intervals / Dockerfile
keefereuther's picture
Update Dockerfile
b3c17ee verified
raw
history blame contribute delete
680 Bytes
# Start with rocker/r-base image
FROM rocker/r-base:latest
# Set the working directory
WORKDIR /code
# Install system dependencies for R packages
RUN apt-get update && apt-get install -y \
libxml2-dev \
libfontconfig1-dev \
libcairo2-dev \
libharfbuzz-dev \
libfribidi-dev \
libpng-dev \
libjpeg-dev \
libfreetype6-dev \
&& rm -rf /var/lib/apt/lists/*
# Install required R packages
RUN install2.r --error \
shiny \
knitr \
ggplot2 \
kableExtra \
shinythemes \
ggExtra
# Copy app files into the container
COPY . .
# Command to run the Shiny app
CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]