File size: 770 Bytes
07c2907
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
FROM rocker/r-ver:4.4.2
RUN apt-get update && apt-get install -y --no-install-recommends python3 python3-pip libcurl4-openssl-dev libssl-dev libxml2-dev libfontconfig1-dev libharfbuzz-dev libfribidi-dev libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev libnlopt-dev cmake && rm -rf /var/lib/apt/lists/*
RUN Rscript -e 'options(repos=c(CRAN="https://packagemanager.posit.co/cran/__linux__/jammy/latest")); install.packages(c("shiny","bslib","httr2","commonmark","DT","ggplot2","lme4","drc","pwr","plumber","jsonlite","testthat"))'
RUN useradd -m -u 1000 user
WORKDIR /home/user/app
COPY requirements.txt .
RUN pip3 install --no-cache-dir -r requirements.txt
COPY --chown=user . .
USER user
ENV HOST=0.0.0.0 PORT=7860 HOME=/home/user
EXPOSE 7860
CMD ["sh", "start.sh"]