Yusin commited on
Commit
183f72b
·
1 Parent(s): feb9bdc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -19
Dockerfile CHANGED
@@ -26,27 +26,12 @@ RUN apt-get update \
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
- USER root
40
-
41
- RUN mkdir -p /var/run/vpnc
42
- RUN chmod -R 777 /var/run/vpnc
43
-
44
- RUN cat /dev/net/tun
45
-
46
- RUN mkdir -p /dev/net
47
- RUN mknod /dev/net/tun c 10 200
48
- RUN chmod 600 /dev/net/tun
49
-
50
- COPY aberconnect.sh /openconnect
51
  RUN chmod +x aberconnect.sh
52
  ENTRYPOINT ["./aberconnect.sh"]
 
26
  && pip3 --no-cache-dir install --upgrade pip \
27
  && rm -rf /var/lib/apt/lists/*
28
 
29
+ WORKDIR /app
30
 
31
+ COPY requirements.txt /app/requirements.txt
32
+ RUN python -m pip install -r /app/requirements.txt
 
 
33
 
 
 
34
 
35
+ COPY aberconnect.sh /app
 
 
 
 
 
 
 
 
 
 
 
36
  RUN chmod +x aberconnect.sh
37
  ENTRYPOINT ["./aberconnect.sh"]