Spaces:
Sleeping
Sleeping
File size: 861 Bytes
318dcfa d3c346a 244a1a0 c00b94f 2ccb594 c00b94f 9f88924 2539c15 bf5faa9 5e2c5fb c00b94f 9de6eae c00b94f |
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 |
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
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
# Set home to the user's home directory
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY --chown=user . $HOME/app
CMD ["streamlit", "run", "app.py", "--server.port", "7860"] |