DataProcess / Dockerfile
OwenStOnge's picture
Update Dockerfile
1d3fcfd verified
raw
history blame
584 Bytes
FROM rocker/r-base:latest
WORKDIR /code
# Install system dependencies
RUN apt-get update && apt-get install -y \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
&& rm -rf /var/lib/apt/lists/*
# Install required R packages
RUN install2.r --error --skipinstalled \
shiny \
shinydashboard \
shinyBS \
DT \
dplyr \
readr \
stringr \
jsonlite \
httr \
progressr \
RCurl \
curl
# Copy app files
COPY . .
# Expose port
EXPOSE 7860
# Run the app
CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]