Yusin commited on
Commit
8fac5c3
·
1 Parent(s): b118ff5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +29 -5
Dockerfile CHANGED
@@ -1,6 +1,23 @@
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 ultrafunk/undetected-chromedriver:latest
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
  RUN apt-get update \
6
  && apt-get install -y python3-pip python3-dev \
@@ -9,10 +26,17 @@ RUN apt-get update \
9
  && pip3 --no-cache-dir install --upgrade pip \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
- COPY requirements.txt .
13
- RUN python -m pip install -r requirements.txt
 
 
 
 
 
 
 
14
 
15
- COPY aberconnect.sh .
16
 
 
17
  RUN chmod +x aberconnect.sh
18
- ENTRYPOINT ["aberconnect.sh"]
 
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 ubuntu:18.04
4
+
5
+ RUN apt-get update
6
+
7
+ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
8
+ sudo \
9
+ build-essential \
10
+ gettext \
11
+ autoconf \
12
+ automake \
13
+ libproxy-dev \
14
+ libxml2-dev \
15
+ libtool \
16
+ vpnc-scripts \
17
+ pkg-config \
18
+ libgnutls28-dev \
19
+ git \
20
+ expect
21
 
22
  RUN apt-get update \
23
  && apt-get install -y python3-pip python3-dev \
 
26
  && pip3 --no-cache-dir install --upgrade pip \
27
  && rm -rf /var/lib/apt/lists/*
28
 
29
+ RUN git clone https://github.com/openconnect/openconnect.git
30
+
31
+ WORKDIR /openconnect
32
+ RUN ./autogen.sh
33
+ RUN ./configure
34
+ RUN make
35
+
36
+ COPY requirements.txt /openconnect/requirements.txt
37
+ RUN python -m pip install -r /openconnect/requirements.txt
38
 
 
39
 
40
+ COPY aberconnect.sh /openconnect
41
  RUN chmod +x aberconnect.sh
42
+ ENTRYPOINT ["./aberconnect.sh"]