microhum commited on
Commit
318dcfa
·
1 Parent(s): c071fd2

finally???

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -1,18 +1,18 @@
1
- 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
 
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 /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
 
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