Spaces:
Runtime error
Runtime error
# Use an official Python runtime as a parent image | |
FROM python:3.10-slim | |
# This copies everything in the current directory to the /app directory in the container | |
COPY . /app | |
# Set the working directory in the container to /app | |
WORKDIR /app | |
# Install any needed packages specified in requirements.txt | |
RUN pip install -r requirements.txt | |
# Make port 8501 available to the world outside this container | |
EXPOSE 80 | |
RUN mkdir ~/.streamlit | |
RUN cp config.toml ~/.streamlit/config.toml | |
RUN cp credentials.toml ~/.streamlit/credentials.toml | |
ENTRYPOINT [ "streamlit", "run" ] | |
# Run app3.py when the container launches | |
CMD [ "app3.py"] |