summarizerai / Dockerfile
pinge's picture
Update Dockerfile
feca9d2 verified
raw
history blame contribute delete
462 Bytes
FROM python:3.9
# Set working directory
WORKDIR /app
# Copy all files to /app
COPY . /app
# Create and set permissions for .streamlit directory
RUN mkdir -p /app/.streamlit && chmod -R u+rw /app/.streamlit
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Expose Streamlit port
EXPOSE 8501
# Run Streamlit app from src subdirectory
CMD ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]