gptneox-chat / Dockerfile
dfalbel's picture
go back to cpu
26d2127 unverified
raw
history blame contribute delete
554 Bytes
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)"]