File size: 762 Bytes
318dcfa
 
d3c346a
244a1a0
c00b94f
eccc0c5
c00b94f
eccc0c5
c00b94f
eccc0c5
c00b94f
 
2ccb594
c00b94f
9f88924
2539c15
bf5faa9
5e2c5fb
c00b94f
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ubuntu:22.04
RUN apt-get -y update && apt-get -y install software-properties-common && apt-get -y install build-essential \
&& add-apt-repository -y ppa:deadsnakes/ppa && apt-get -y install python3.10 && apt-get -y install python3-pip

# Set home to the user's home directory
ENV HOME=/home/app

WORKDIR $HOME

COPY . $HOME

COPY ./packages.txt /code/packages.txt
RUN xargs apt-get install -y </code/packages.txt

RUN echo $(ls -1 /usr/lib/)
RUN echo $(ls -1 /usr/lib/python3.10)

RUN cp /usr/lib/python3/dist-packages/fontforge.cpython-310-x86_64-linux-gnu.so /usr/lib/python3.10/

COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

CMD ["streamlit", "run", "app.py", "--server.port", "7860"]