Spaces:
Configuration error
Configuration error
File size: 872 Bytes
4d64ea5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# Use an official Python runtime as a parent image
FROM python:3.10.12-slim-buster
# Set the working directory in the container to /app
WORKDIR /app
# Add the current directory contents into the container at /app
ADD . /app
# Install any needed debian packages and those specified in requirements.txt
RUN apt-get update && apt-get install -y \
build-essential \
libssl-dev \
libffi-dev \
python3-dev \
git \
curl \
unzip \
&& rm -rf /var/lib/apt/lists/* \
&& pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
# Make port 8502 available to the world outside this container
EXPOSE 8504
# Add healthcheck
HEALTHCHECK --interval=5m --timeout=3s \
CMD curl -f http://localhost:8504/ || exit 1
# Run app.py when the container launches
ENTRYPOINT [ "streamlit", "run" ]
CMD [ "PAL.py" ] |