Spaces:
Runtime error
Runtime error
Download Dockerfile from randomLearner24/sign-lang: direct link, hf CLI and curl.
- Browser
- Download file 707 Bytes
-
https://huggingface.co/spaces/randomLearner24/sign-lang/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/randomLearner24/sign-lang/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/randomLearner24/sign-lang/resolve/main/Dockerfile
707 Bytes
| FROM python:3.10 | |
| # RUN useradd -m -u 1000 user | |
| # USER user | |
| # ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /app | |
| COPY --chown=user ./requirements.txt /app/requirements.txt | |
| COPY ./packages.txt /app/packages.txt | |
| RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/* | |
| RUN pip3 install --no-cache-dir -r /app/requirements.txt | |
| # RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| # User | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME /home/user | |
| ENV PATH $HOME/.local/bin:$PATH | |
| WORKDIR $HOME | |
| RUN mkdir app | |
| WORKDIR $HOME/app | |
| COPY . $HOME/app | |
| # COPY --chown=user . /app | |
| CMD ["python", "app.py", "--host", "0.0.0.0", "--port", "7860"] | |