Spaces:
Sleeping
Sleeping
File size: 777 Bytes
5a18952 937570b 5a18952 71493cb a294d09 71493cb 5a18952 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
# you will also find guides on how best to write your Dockerfile
FROM python:3.12
RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"
WORKDIR /app
# Set environment variables for database connection
ENV MONGO_DB_URL=mongodb+srv://amrita:PwywryiC55QmERU0@cluster0.xyssel6.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0
ENV NEO_DB_HOST=neo4j+s://bedcd9e5.databases.neo4j.io:7687
ENV NEO_DB_USER=neo4j
ENV NEO_DB_PASSWORD=G0NJr1Y0I6H-E4hsms7XrMMN8VRqRJiUdk7aslHv7Ow
COPY --chown=user ./requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
COPY --chown=user . /app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |