DataProcess / Dockerfile
igroffman's picture
Update Dockerfile
06f35ef verified
raw
history blame
515 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
# Copy app files
COPY . .
# Expose port
EXPOSE 7860
# Run the app
CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]