andreped commited on
Commit
338bb65
1 Parent(s): 6192ac1

Build on top of python:3.7-slim image in Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -13
Dockerfile CHANGED
@@ -1,22 +1,16 @@
1
  # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
  # you will also find guides on how best to write your Dockerfile
3
-
4
- # creates virtual ubuntu in docker image
5
- FROM ubuntu:22.04
6
 
7
  # set language, format and stuff
8
  ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
9
 
10
- # NOTE: using -y is conveniently to automatically answer yes to all the questions
11
- # installing python3 with a specific version
12
  RUN apt-get update -y
13
- RUN apt-get upgrade -y
14
- RUN apt install software-properties-common -y
15
- RUN add-apt-repository ppa:deadsnakes/ppa -y
16
- RUN apt update
17
- RUN apt install python3.7 -y
18
- RUN apt install python3.7-distutils -y
19
- RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.7 1
20
 
21
  # installing other libraries
22
  RUN apt-get install python3-pip -y && \
@@ -28,7 +22,6 @@ RUN apt-get install libblas-dev -y && apt-get install liblapack-dev -y
28
  RUN apt-get install gfortran -y
29
  RUN apt-get install libpng-dev -y
30
  RUN apt-get install python3-dev -y
31
- # RUN apt-get -y install cmake curl
32
 
33
  WORKDIR /code
34
 
 
1
  # read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
  # you will also find guides on how best to write your Dockerfile
3
+ FROM python:3.7-slim
 
 
4
 
5
  # set language, format and stuff
6
  ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
7
 
8
+ WORKDIR /code
9
+
10
  RUN apt-get update -y
11
+ #RUN apt-get install -y python3 python3-pip
12
+ RUN apt install git --fix-missing -y
13
+ RUN apt install wget -y
 
 
 
 
14
 
15
  # installing other libraries
16
  RUN apt-get install python3-pip -y && \
 
22
  RUN apt-get install gfortran -y
23
  RUN apt-get install libpng-dev -y
24
  RUN apt-get install python3-dev -y
 
25
 
26
  WORKDIR /code
27