Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- 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 |
-
|
30 |
|
31 |
-
|
32 |
-
RUN
|
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 |
-
|
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"]
|