Add environment configuration and enhance Shiny app with AWS integration

This commit is contained in:
Dom
2026-02-08 14:04:42 +00:00
parent 3873cb7b3f
commit b35394c569
6 changed files with 691 additions and 31 deletions

22
shiny-app/Dockerfile Normal file
View 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