forked from open-quantum-safe/oqs-demos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-server
50 lines (31 loc) · 1.13 KB
/
Dockerfile-server
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
ARG LIBOQS_TAG=main
FROM ubuntu:focal as builder
ARG LIBOQS_TAG
ENV TZ=Europe/Zurich
ENV DEBIAN_FRONTEND=noninteractive
# Update apt software
RUN apt update
# Install prerequisites
RUN apt install git libz-dev libevent-dev cmake gcc ninja-build libunwind-dev pkg-config python3 python3-psutil golang-go -y
WORKDIR /opt
# Download openlitespeed repository
RUN git clone https://github.com/litespeedtech/openlitespeed.git
COPY build.sh.patch /opt/
COPY build_bssl.sh.patch /opt/
# Apply patch to build.sh
RUN cd openlitespeed && git apply --reject --whitespace=fix /opt/build.sh.patch
ENV LIBOQS_TAG=${LIBOQS_TAG}
# Build and install openlitespeed
RUN cd openlitespeed && ./build.sh && ./install.sh
WORKDIR /root/
# Configuring the server to expose CA.crt on port 80 and to enable QUIC on port 443
COPY httpd_config.conf /usr/local/lsws/conf/
FROM ubuntu:focal
ENV TZ=Europe/Zurich
ENV DEBIAN_FRONTEND=noninteractive
COPY --from=builder /usr/local/lsws/ /usr/local/lsws
COPY --from=builder /usr/local/lib/liboqs.* /usr/local/lib
RUN ldconfig
RUN apt update && apt install -y openssl net-tools
WORKDIR /root/
COPY serverstart.sh .