streamlit_app / Dockerfile
martper56's picture
import streamlit code from streamlit branch
632ab6a
# Use an official Python runtime as a parent image
FROM python:3.9-slim
# Set the working directory inside the container
WORKDIR /app
# Copy the current directory contents into the container
COPY . /app
# Install any needed packages specified in requirements.txt
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
# Make a volume mount point for the input/output CSV files
# VOLUME ["/app/input_data.csv", "/app/output_data.csv"]
EXPOSE 7860
# Run the application (by default, run the main ETL process)
CMD ["streamlit", "run", "streamlit/Home.py", "--server.port=7860", "--server.address=0.0.0.0"]