make-quant-py/Dockerfile

24 lines
495 B
Docker
Raw Permalink Normal View History

2025-03-31 12:35:54 +09:00
FROM python:3.12-slim
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy source code
2025-03-31 17:57:04 +09:00
COPY .env /app/
2025-03-31 12:35:54 +09:00
COPY src/ /app/src/
COPY README.md /app/
# Make sure credentials directory exists
RUN mkdir -p /app/src/config
# Set environment variables
ENV PYTHONPATH=/app
# Expose port for Streamlit
EXPOSE 8501
# Command to run the application
CMD ["streamlit", "run", "src/app.py", "--server.port=8501", "--server.address=0.0.0.0"]