NuExtract-large / Dockerfile
amrita06's picture
modified filea
a294d09
raw
history blame contribute delete
777 Bytes
# 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"]