#FROM ubuntu:22.04 | |
FROM python:3.11-bullseye | |
ARG DEBIAN_FRONTEND=noninteractive | |
USER root | |
RUN apt-get update && apt-get install -y \ | |
curl \ | |
nano \ | |
poppler-utils \ | |
software-properties-common \ | |
&& rm -rf /var/lib/apt/lists/* | |
ENV APP_ROOT=/home | |
WORKDIR /home | |
COPY . . | |
RUN chown -R root:root ${APP_ROOT} && chmod -R 777 ${APP_ROOT} | |
RUN pip install --upgrade pip setuptools \ | |
&& pip install --no-cache-dir -r requirements.txt \ | |
&& pip install streamlit==1.38.0 | |
EXPOSE 7860 | |
ENTRYPOINT /home/server/start_server.sh |