File size: 544 Bytes
e676d24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#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