mirror of
https://github.com/sonertari/SSLproxy
synced 2024-11-18 03:25:31 +00:00
52d37297b6
Change SIGHUP to behave like SIGUSR1
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" ]
|
|
|