wealthfolio / Dockerfile
JakeFake222's picture
Upload Dockerfile with huggingface_hub
971e21a verified
raw
history blame contribute delete
482 Bytes
FROM afadil/wealthfolio:latest
# HF Spaces runs as user with uid 1000
USER root
# Create data directory with proper permissions
RUN mkdir -p /data && chmod 777 /data
# Set environment variables for HF Spaces
ENV WF_LISTEN_ADDR=0.0.0.0:7860
ENV WF_DB_PATH=/data/wealthfolio.db
ENV WF_SECRET_KEY=nfvVROn2DrW4WsEgULr95086IiiI1Nn+/FgzawerQ3A=
# Expose the HF default port
EXPOSE 7860
# Run as non-root user (HF requirement)
USER 1000
# Start the server
CMD ["wealthfolio-server"]