Spaces:
Runtime error
Runtime error
File size: 804 Bytes
3c0d933 8a3fba7 3c0d933 42d15d2 b87f19d dc41f47 42d15d2 3c0d933 42d15d2 3c0d933 42d15d2 b87f19d bf43b6e 0dad803 241beb6 d928c7f 241beb6 3c0d933 |
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 30 31 32 33 34 35 36 37 38 |
FROM rocker/shiny-verse:latest
WORKDIR /code
# Install stable packages from CRAN
RUN install2.r --error \
ggExtra \
shiny \
callr
# Install Rust for tok
RUN apt-get -y update && \
apt-get -y install curl && \
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
# Install development packages from GitHub
ENV TORCH_INSTALL=1
RUN installGithub.r \
rstudio/bslib \
rstudio/httpuv \
mlverse/tok
RUN installGithub.r \
mlverse/minhub \
mlverse/hfhub \
mlverse/callq
# see: https://huggingface.co/docs/hub/spaces-sdks-docker#permissions
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME
COPY --chown=user . .
CMD ["R", "--quiet", "-e", "shiny::runApp(host='0.0.0.0', port=7860)"]
|