Spaces:
Sleeping
Sleeping
finally???
Browse files- Dockerfile +16 -0
Dockerfile
CHANGED
@@ -2,3 +2,19 @@ FROM ubuntu:18.04
|
|
2 |
RUN apt-get -y update && apt-get -y install software-properties-common \
|
3 |
&& add-apt-repository -y ppa:deadsnakes/ppa && apt-get -y install python3.10 && apt-get -y install python3-pip
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
RUN apt-get -y update && apt-get -y install software-properties-common \
|
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 |
+
ENV HOME=/home/user
|
7 |
+
|
8 |
+
WORKDIR $HOME/app
|
9 |
+
|
10 |
+
COPY . $HOME/app
|
11 |
+
|
12 |
+
COPY ./packages.txt /code/packages.txt
|
13 |
+
RUN xargs sudo apt-get install -y <packages.txt
|
14 |
+
|
15 |
+
COPY /home/usr/lib/python3 /home/usr/lib/python3.10/dist-packages/
|
16 |
+
|
17 |
+
COPY ./requirements.txt /code/requirements.txt
|
18 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
19 |
+
|
20 |
+
CMD ["streamlit", "run", "app.py", "--server.port", "7860"]
|