Spaces:
Sleeping
Sleeping
fix error
Browse files- Dockerfile +10 -12
Dockerfile
CHANGED
@@ -2,18 +2,6 @@ FROM ubuntu:22.04
|
|
2 |
RUN apt-get -y update && apt-get -y install software-properties-common && apt-get -y install build-essential \
|
3 |
&& add-apt-repository -y ppa:deadsnakes/ppa && apt-get -y install python3.10 && apt-get -y install python3-pip
|
4 |
|
5 |
-
# Set home to the user's home directory
|
6 |
-
RUN useradd -m -u 1000 user
|
7 |
-
USER user
|
8 |
-
ENV HOME=/home/user \
|
9 |
-
PATH=/home/user/.local/bin:$PATH
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
WORKDIR $HOME/app
|
14 |
-
|
15 |
-
COPY --chown=user . $HOME/app
|
16 |
-
|
17 |
COPY ./packages.txt /code/packages.txt
|
18 |
RUN xargs apt-get install -y </code/packages.txt
|
19 |
|
@@ -25,4 +13,14 @@ RUN cp /usr/lib/python3/dist-packages/fontforge.cpython-310-x86_64-linux-gnu.so
|
|
25 |
COPY ./requirements.txt /code/requirements.txt
|
26 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
CMD ["streamlit", "run", "app.py", "--server.port", "7860"]
|
|
|
2 |
RUN apt-get -y update && apt-get -y install software-properties-common && apt-get -y install build-essential \
|
3 |
&& add-apt-repository -y ppa:deadsnakes/ppa && apt-get -y install python3.10 && apt-get -y install python3-pip
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
COPY ./packages.txt /code/packages.txt
|
6 |
RUN xargs apt-get install -y </code/packages.txt
|
7 |
|
|
|
13 |
COPY ./requirements.txt /code/requirements.txt
|
14 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
15 |
|
16 |
+
# Set home to the user's home directory
|
17 |
+
RUN useradd -m -u 1000 user
|
18 |
+
USER user
|
19 |
+
ENV HOME=/home/user \
|
20 |
+
PATH=/home/user/.local/bin:$PATH
|
21 |
+
|
22 |
+
WORKDIR $HOME/app
|
23 |
+
|
24 |
+
COPY --chown=user . $HOME/app
|
25 |
+
|
26 |
CMD ["streamlit", "run", "app.py", "--server.port", "7860"]
|