diff --git a/Dockerfile b/Dockerfile index 7e9d308..5fcd10e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM casjaysdev/alpine:latest as build +FROM alpine:3.14 AS build WORKDIR /tmp/build @@ -13,14 +13,14 @@ RUN apk -U upgrade && \ openssl \ openssl-dev \ linux-headers \ - python3 \ + python2 \ rrdtool RUN git clone https://github.com/cherokee/webserver.git . && \ libtoolize --force && \ ./autogen.sh --prefix=/usr/local/share/cherokee && \ - ./configure --prefix=/usr/local/share/cherokee && \ - make && make install && \ + ./configure CFLAGS="-static" --prefix=/usr/local/share/cherokee && \ + make LDFLAGS="-all-static" && make install && \ echo "

Built from $(git rev-parse --short HEAD) on $(date)

" > ./version.txt && \ apk del \ alpine-sdk \