CoolFace
Apppublic

MainiSandeep1987/Machine-Failure-Prediction

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
Dockerfile24 linesDownload Raw Back to root
1# Use a minimal base image with Python 3.9 installed2FROM python:3.93 4# Set the working directory inside the container to /app5WORKDIR /app6 7# Copy all files from the current directory on the host to the container's /app directory8COPY . .9 10# Install Python dependencies listed in requirements.txt11RUN pip3 install -r requirements.txt12 13RUN useradd -m -u 1000 user14USER user15ENV HOME=/home/user \16	PATH=/home/user/.local/bin:$PATH17 18WORKDIR $HOME/app19 20COPY --chown=user . $HOME/app21 22# Define the command to run the Streamlit app on port "8501" and make it accessible externally23CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]24