lwan/Dockerfile
Aleksander Cynarski 54f40f4b18
All checks were successful
continuous-integration/drone/push Build is passing
initial commit
2020-10-10 17:01:46 +02:00

34 lines
599 B
Docker

FROM alpine:edge as builder
RUN apk --no-cache add cmake \
clang \
clang-dev \
make \
gcc \
g++ \
libc-dev \
linux-headers \
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"]