Switch to clang, fix master builds, add lua
parent
26e20c35dc
commit
5161b973ae
17
Dockerfile
17
Dockerfile
|
@ -9,14 +9,27 @@ ARG version="master"
|
||||||
# build root
|
# build root
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
|
|
||||||
RUN apk add --no-cache git upx ca-certificates alpine-sdk cmake zlib-dev
|
RUN apk add \
|
||||||
|
git \
|
||||||
|
ca-certificates \
|
||||||
|
alpine-sdk \
|
||||||
|
clang \
|
||||||
|
cmake \
|
||||||
|
zlib-static zlib-dev \
|
||||||
|
lua5.1 lua5.1-dev \
|
||||||
|
linux-headers
|
||||||
# source
|
# source
|
||||||
RUN git clone https://github.com/lpereira/lwan -b ${version} .
|
RUN git clone https://github.com/lpereira/lwan -b ${version} .
|
||||||
|
|
||||||
# build
|
# build
|
||||||
RUN mkdir build \
|
RUN mkdir build \
|
||||||
&& cd build \
|
&& cd build \
|
||||||
&& cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXE_LINKER_FLAGS="-static" -DCMAKE_C_FLAGS="-static" \
|
&& cmake \
|
||||||
|
.. \
|
||||||
|
-DCMAKE_C_COMPILER=clang \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DCMAKE_EXE_LINKER_FLAGS="-static" \
|
||||||
|
-DCMAKE_C_FLAGS="-static" \
|
||||||
&& make
|
&& make
|
||||||
# compress and test
|
# compress and test
|
||||||
#RUN cd build \
|
#RUN cd build \
|
||||||
|
|
|
@ -5,9 +5,6 @@ keep_alive_timeout = 15
|
||||||
# release builds.)
|
# release builds.)
|
||||||
quiet = false
|
quiet = false
|
||||||
|
|
||||||
# Set SO_REUSEPORT=1 in the master socket.
|
|
||||||
reuse_port = false
|
|
||||||
|
|
||||||
# Value of "Expires" header. Default is 1 month and 1 week.
|
# Value of "Expires" header. Default is 1 month and 1 week.
|
||||||
expires = 1M 1w
|
expires = 1M 1w
|
||||||
|
|
||||||
|
@ -19,9 +16,7 @@ proxy_protocol = false
|
||||||
|
|
||||||
# Enable straitjacket by default. The `drop_capabilities` option is `true`
|
# Enable straitjacket by default. The `drop_capabilities` option is `true`
|
||||||
# by default. Other options may require more privileges.
|
# by default. Other options may require more privileges.
|
||||||
straitjacket {
|
straitjacket
|
||||||
drop_capabilities = false
|
|
||||||
}
|
|
||||||
|
|
||||||
listener *:8080 {
|
listener *:8080 {
|
||||||
serve_files / {
|
serve_files / {
|
||||||
|
|
Loading…
Reference in New Issue