Spaces:
Build error
Build error
Download Dockerfile_Test from ashwinR/Gurucool_Test: direct link, hf CLI and curl.
- Browser
- Download file 986 Bytes
-
https://huggingface.co/spaces/ashwinR/Gurucool_Test/resolve/main/Dockerfile_Test
- Command line
-
hf download hf://spaces/ashwinR/Gurucool_Test/Dockerfile_Test
-
curl -L -o Dockerfile_Test https://huggingface.co/spaces/ashwinR/Gurucool_Test/resolve/main/Dockerfile_Test
986 Bytes
| FROM python:3.9-slim | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Copy the current directory contents into the container | |
| COPY . /app | |
| # Install any needed packages specified in requirements.txt | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| supervisor \ | |
| postgresql \ | |
| redis-server && \ | |
| pip install --upgrade pip poetry && \ | |
| poetry config virtualenvs.create false && \ | |
| poetry install --no-interaction --no-ansi && \ | |
| apt-get clean && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Copy supervisor configuration | |
| COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf | |
| # Set environment variable | |
| ENV DATABASE_URL=postgresql://postadmin:postpass@localhost/siksalaya | |
| # Make port 80 available to the world outside this container | |
| EXPOSE 7860 | |
| # Add and give execution permissions to the startup script | |
| COPY start.sh start.sh | |
| RUN chmod +x start.sh | |
| # Start services with Supervisor | |
| CMD ["/usr/bin/supervisord"] | |