-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
22 lines (21 loc) · 975 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM alpine as builder
WORKDIR /root
# Speedup for Chinese Mainland Users
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
RUN apk add --no-cache git libevent-dev linux-headers autoconf automake build-base make bash \
&& git clone https://github.com/cernekee/ocproxy.git \
&& cd ocproxy \
&& ./autogen.sh \
&& ./configure \
&& make
FROM alpine
# Speedup for Chinese Mainland Users
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
LABEL maintainer="yeahjack <[email protected]>"
LABEL description="This Docker image facilitates selective network routing for Ivanti-connected devices to a school's network, using port forwarding for enhanced access control."
RUN apk add libevent bash openconnect --no-cache
COPY --from=builder /root/ocproxy/ocproxy /usr/local/bin/
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
STOPSIGNAL SIGTERM
CMD ["/entrypoint.sh"]