-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
29 lines (21 loc) · 1023 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM bioconductor/bioconductor_docker:3.20-R-4.4.2
# Add a non-root user and create the R library directory
RUN useradd -m tima-user && \
mkdir -p /home/tima-user/Library/Frameworks/R.framework/Resources/site-library && \
chown -R tima-user:tima-user /home/tima-user
# Set the R library path to the new directory
ENV R_LIBS_USER=/home/tima-user/Library/Frameworks/R.framework/Resources/site-library
# Switch to the non-root user
USER tima-user
WORKDIR /home/tima-user
# Install R dependencies
RUN Rscript -e "devtools::install_github('taxonomicallyinformedannotation/tima')"
# RUN Rscript -e "install.packages('tima', repos = c('https://taxonomicallyinformedannotation.r-universe.dev', 'https://bioc.r-universe.dev', 'https://cran.r-universe.dev'))"
# Additional install
RUN Rscript -e "tima::install()"
# Expose the necessary ports for Shiny
EXPOSE 3838
# Disable healthcheck (if you really want to disable it)
HEALTHCHECK NONE
# Define default command (commented out)
CMD ["Rscript -e 'tima::run_app()'"]