InvestingTest / Dockerfile
Mbonea's picture
Add admin backend and Hugging Face deployment config
0f06d85
raw
history blame contribute delete
540 Bytes
# Hugging Face Spaces Docker runtime
FROM python:3.10.0
ENV UWEKEZAJI_DATA_DIR=/data/InvestingTest
ENV SQLITE_DB_PATH=/data/InvestingTest/db.sqlite3
# Set the working directory
WORKDIR /srv
# Copy requirements file first to leverage caching
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code
COPY . /srv
RUN mkdir -p /data/InvestingTest
CMD python -m uvicorn main:app --workers 1 --host 0.0.0.0 --port 7860 --log-level debug
# Expose port
EXPOSE 7860