test / dockerfile
GopalGoyal's picture
start
0b1042e
raw
history blame contribute delete
620 Bytes
FROM python:3.8-slim-buster
COPY . /app
WORKDIR /app
RUN apt-get update -q \
&& apt-get install --no-install-recommends -qy python3-dev g++ gcc inetutils-ping \
&& pip install --progress-bar off gunicorn \
&& pip install --progress-bar off -r requirements.txt \
&& apt-get remove -qy python3-dev g++ gcc --purge \
&& rm -rf /var/lib/apt/lists/*
RUN pip install -r requirements.txt
RUN pip install --upgrade numpy scipy pandas
EXPOSE 8501
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
CMD ["app.py"]