Spaces:
Sleeping
Sleeping
finally???
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
-
FROM ubuntu:
|
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/
|
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
|
14 |
|
15 |
-
|
16 |
|
17 |
COPY ./requirements.txt /code/requirements.txt
|
18 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
|
1 |
+
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 |
+
ENV HOME=/home/
|
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 </code/packages.txt
|
14 |
|
15 |
+
RUN cp /usr/lib/python3 /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
|