lwan/Dockerfile

38 lines
678 B
Docker
Raw Normal View History

2020-10-10 15:01:46 +00:00
FROM alpine:edge as builder
RUN apk --no-cache add cmake \
clang \
clang-dev \
make \
gcc \
g++ \
libc-dev \
linux-headers \
2020-10-11 21:43:07 +00:00
lua-dev \
py3-pip \
brotli-libs \
sqlite-dev \
2020-10-10 15:01:46 +00:00
zlib-dev \
git
RUN \
git clone git://github.com/lpereira/lwan && \
cd lwan && \
mkdir build && \
cd build && \
cmake .. -DCMAKE_BUILD_TYPE=Release && \
make && \
pwd
FROM alpine:edge
COPY --from=builder /lwan/build/src/bin/lwan/ /opt/lwan
COPY lwan/lwan.conf /opt/lwan
WORKDIR /opt/lwan
EXPOSE 80 443 8080
VOLUME ["/opt/lwan", "/opt/lwan/wwwroot"]
ENTRYPOINT ["/opt/lwan/lwan"]