Add Dockerfile

This commit is contained in:
Elias Projahn 2025-03-05 17:22:57 +01:00
parent 753beeed71
commit 5b5c641a47
6 changed files with 37 additions and 5 deletions

12
Dockerfile Normal file
View file

@ -0,0 +1,12 @@
FROM rocker/shiny:4.4
COPY . /tmp/package/
RUN Rscript -e 'install.packages("pak")' && \
Rscript -e 'pak::local_install("/tmp/package/")'
COPY docker/app.R /srv/shiny-server/ubigen/app.R
COPY docker/shiny-server.conf /etc/shiny-server/shiny-server.conf
EXPOSE 3464
CMD ["/usr/bin/shiny-server"]