Spaces:
Configuration error
Configuration error
Download Dockerfile from Penguni/Image-Search-Engine: direct link, hf CLI and curl.
- Browser
- Download file 611 Bytes
-
https://huggingface.co/spaces/Penguni/Image-Search-Engine/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Penguni/Image-Search-Engine/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Penguni/Image-Search-Engine/resolve/main/Dockerfile
611 Bytes
| # start with a base image | |
| FROM ubuntu:16.04 | |
| # install dependencies | |
| RUN apt-get update | |
| RUN apt-get install -y python python-pip | |
| RUN apt-get install -y libglib2.0-0 | |
| # Copy the current directory contents into the container | |
| COPY . . | |
| # Install any needed packages specified in requirements.txt | |
| RUN pip install --trusted-host pypi.python.org -r requirements.txt | |
| # Make port 8000 available outside this container | |
| EXPOSE 8000 | |
| # Set the working directory to /app | |
| WORKDIR app | |
| # run script to generate image histogram from DB | |
| # Run app.py when the container launches | |
| CMD ["gunicorn", "-b", "0.0.0.0:8000", "app:app"] |