Add environment configuration and enhance Shiny app with AWS integration
This commit is contained in:
22
shiny-app/Dockerfile
Normal file
22
shiny-app/Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
||||
FROM rocker/shiny:latest
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
libpq-dev \
|
||||
libcurl4-openssl-dev \
|
||||
libssl-dev \
|
||||
libxml2-dev \
|
||||
curl \
|
||||
unzip \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
|
||||
&& unzip awscliv2.zip \
|
||||
&& ./aws/install \
|
||||
&& rm -rf awscliv2.zip aws
|
||||
|
||||
RUN R -e "install.packages(c('DBI','RPostgres','dplyr','DT','glue','shiny'), repos='https://cloud.r-project.org')"
|
||||
|
||||
WORKDIR /srv/shiny-server
|
||||
COPY app.R /srv/shiny-server/app.R
|
||||
|
||||
EXPOSE 3838
|
||||
Reference in New Issue
Block a user