Spaces:
Running
Running
# FROM python:3.10 | |
# RUN useradd -m -u 1000 user | |
# RUN apt-get update && apt-get install -y fakeroot && mv /usr/bin/apt-get /usr/bin/.apt-get && echo '#!/usr/bin/env sh\nfakeroot /usr/bin/.apt-get $@' > /usr/bin/apt-get && chmod +x /usr/bin/apt-get && rm -rf /var/lib/apt/lists/* && useradd -m -u 1000 user | |
# COPY --chown=1000:1000 --from=root / / | |
# WORKDIR /home/user/app | |
# RUN apt-get update && apt-get install -y git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1-mesa-glx libgles2-mesa-dev && rm -rf /var/lib/apt/lists/* && git lfs install | |
# RUN pip install --no-cache-dir pip==22.3.1 && pip install --no-cache-dir datasets "huggingface-hub>=0.19" "hf-transfer>=0.1.4" "protobuf<4" "click<8.1" "pydantic~=1.0" | |
# RUN --mount=target=/tmp/pre-requirements.txt,source=pre-requirements.txt pip install --no-cache-dir -r /tmp/pre-requirements.txt | |
# RUN --mount=target=/tmp/requirements.txt,source=requirements.txt pip install --no-cache-dir -r /tmp/requirements.txt | |
# RUN export MUSCAT_USE_EIGENCYEIGEN=1 | |
# RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.82.0/source/boost_1_82_0.zip | |
# RUN unzip boost_1_82_0.zip | |
# RUN MUSCAT_USE_EIGENCYEIGEN=1 | |
# RUN MUSCAT_EXTRA_INCLUDE_DIRS=%cd%\boost_1_82_0 | |
# RUN pip install Muscat@https://gitlab.com/drti/muscat/-/archive/2.2.1/muscat-2.0.2.tar.bz2 | |
# RUN pip install --no-cache-dir gradio[oauth]==4.37.1 "uvicorn>=0.14.0" spaces | |
# COPY --link --chown=1000 ./ /home/user/app | |
# RUN pip freeze > /tmp/freeze.txt | |
# COPY --from=pipfreeze --link --chown=1000 /tmp/freeze.txt /tmp/freeze.txt | |
# # Set up a new user named "user" with user ID 1000 | |
# RUN useradd -m -u 1000 user | |
# # Switch to the "user" user | |
# USER user | |
# # Set home to the user's home directory | |
# ENV HOME=/home/user \ | |
# PATH=/home/user/.local/bin:$PATH | |
# # Set the working directory to the user's home directory | |
# WORKDIR $HOME/app | |
# # Copy the current directory contents into the container at $HOME/app setting the owner to the user | |
# COPY --chown=user . $HOME/app | |
# CMD ["python", "app.py"] |