Spaces:
Build error
Build error
File size: 1,159 Bytes
790f2db 4293a6c 8fac5c3 790f2db b942d7a a0f7f16 b942d7a 790f2db 8fac5c3 790f2db d98e4f2 4582283 795dfa0 1f8f8aa 790f2db 8fac5c3 a95da86 8fac5c3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
# you will also find guides on how best to write your Dockerfile
FROM ubuntu:22.04
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
sudo \
build-essential \
gettext \
autoconf \
automake \
libproxy-dev \
libxml2-dev \
libtool \
vpnc-scripts \
pkg-config \
libgnutls28-dev \
git \
expect
RUN apt-get update \
&& apt-get install -y python3-pip python3-dev \
&& cd /usr/local/bin \
&& ln -s -f /usr/bin/python3 python \
&& pip3 --no-cache-dir install --upgrade pip \
&& rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/openconnect/openconnect.git
WORKDIR /openconnect
RUN ./autogen.sh
RUN ./configure
RUN make
COPY requirements.txt /openconnect/requirements.txt
RUN python -m pip install -r /openconnect/requirements.txt
USER root
RUN mkdir -p /var/run/vpnc
RUN chmod -R 777 /var/run/vpnc
RUN cat /dev/net/tun
RUN mkdir -p /dev/net
RUN mknod /dev/net/tun c 10 200
RUN chmod 600 /dev/net/tun
COPY aberconnect.sh /openconnect
RUN chmod +x aberconnect.sh
ENTRYPOINT ["./aberconnect.sh"]
|