Spaces:
Runtime error
Runtime error
File size: 554 Bytes
26d2127 52f52aa 3c0d933 52f52aa 33bcf08 0dad803 52f52aa 241beb6 52f52aa d928c7f 241beb6 52f52aa 3c0d933 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
ARG RUNTIME=cpu
FROM ghcr.io/mlverse/torch:${RUNTIME}-main-release-focal
COPY DESCRIPTION DESCRIPTION
RUN apt-get update -y && \
apt-get install -y pkg-config && \
Rscript -e "pak::pak(lib=.Library)"
# This is to make sure we don't run into permission problems in HF Spaces
# 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)"]
|