shaadfazal's picture
Update Dockerfile
5fc1e26 verified
raw
history blame contribute delete
415 Bytes
FROM python:3.10
# Set working directory
WORKDIR /home/user/app
# Copy files to container
COPY requirements.txt /tmp/requirements.txt
COPY app.py /home/user/app/app.py
# Install Python dependencies
RUN pip install --no-cache-dir -r /tmp/requirements.txt
# Expose Streamlit default port
EXPOSE 7860
# Run Streamlit app
CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.enableCORS", "false"]