KnowledgeGraph / Dockerfile
alonsosilva's picture
Update Dockerfile
9bf7c81
raw
history blame contribute delete
544 Bytes
FROM python:3.11
RUN apt-get update
RUN apt-get --yes install graphviz
# Set up a new user named "user" with user ID 1000
RUN useradd -m -u 1000 user
# Switch to the "user" user
USER user
# Set home to the user's home directory
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
COPY --chown=user requirements.txt .
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir --upgrade -r requirements.txt
COPY --chown=user app.py app.py
ENTRYPOINT ["solara", "run", "app.py", "--host=0.0.0.0", "--port", "7860"]