mirror of
https://github.com/sonertari/SSLproxy
synced 2024-11-06 09:20:26 +00:00
18 lines
620 B
Docker
18 lines
620 B
Docker
|
FROM alpine:3.8 as builder
|
||
|
RUN apk add --no-cache fts libressl libevent libpcap libnet
|
||
|
RUN apk add --no-cache libressl-dev libevent-dev libpcap-dev libnet-dev check-dev libc-dev fts-dev linux-headers gcc make git
|
||
|
COPY . /opt/sslproxy
|
||
|
WORKDIR /opt/sslproxy
|
||
|
ENV LIBS -lfts
|
||
|
ENV TCPPFLAGS -DDOCKER
|
||
|
RUN export SOURCE_DATE_EPOCH=$(stat -c '%Y' *.c *.h|sort -r|head -1); make clean && make all test
|
||
|
|
||
|
FROM alpine:3.8 as production
|
||
|
RUN apk add --no-cache fts libressl libevent libpcap libnet
|
||
|
WORKDIR /root/
|
||
|
COPY --from=builder /opt/sslproxy/sslproxy /usr/local/bin/sslproxy
|
||
|
#EXPOSE 80 443
|
||
|
ENTRYPOINT [ "sslproxy" ]
|
||
|
CMD [ "-V" ]
|
||
|
|