GAF-Guard-Server / Dockerfile
dsalwala's picture
Update Dockerfile
7ca9698 verified
raw
history blame contribute delete
555 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 dsalwala/gaf-guard-server:slim
# Set home to the user's home directory
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
# Set the working directory to the user's home directory
WORKDIR $HOME/app
# Copy configuration file
COPY risk_assessment.yaml .
# Expose the gaf guard server port
EXPOSE 8000
CMD ["python", "gaf_guard/redirect.py", "serve", "--config", "risk_assessment.yaml", "--host", "0.0.0.0"]