Download Dockerfile from TechDev/GemPlus: direct link, hf CLI and curl.
- Browser
- Download file 675 Bytes
-
https://huggingface.co/spaces/TechDev/GemPlus/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/TechDev/GemPlus/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/TechDev/GemPlus/resolve/main/Dockerfile
675 Bytes
| FROM ubuntu | |
| RUN apt-get update && \ | |
| apt-get install -y sudo && \ | |
| apt-get clean | |
| RUN apt-get update && apt-get install -y python3 python3-pip python3.12-venv | |
| RUN apt-get update && apt-get install -y \ | |
| curl \ | |
| ca-certificates \ | |
| gnupg | |
| ARG URL | |
| # Añadir un usuario llamado 'appuser' | |
| RUN useradd -ms /bin/bash appuser | |
| RUN usermod -aG sudo appuser | |
| RUN echo "appuser ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers | |
| USER appuser | |
| WORKDIR /app | |
| COPY . /app | |
| RUN sudo chmod -R 777 /app | |
| RUN python3 -m venv venv | |
| RUN /bin/bash -c "source venv/bin/activate && python3 install.py && pip3 install -r requirements.txt" | |
| CMD [ "venv/bin/gunicorn","-b","0.0.0.0:7860", "app:app"] |