🗃️ modified: Dockerfile 🗃️

This commit is contained in:
Jason 2022-07-06 23:23:31 -04:00
parent 203504ff36
commit 5e0ce5d792
No known key found for this signature in database
GPG Key ID: 4F765975C1F0EE5F

View File

@ -1,4 +1,4 @@
FROM casjaysdev/alpine:latest as build FROM alpine:3.14 AS build
WORKDIR /tmp/build WORKDIR /tmp/build
@ -13,14 +13,14 @@ RUN apk -U upgrade && \
openssl \ openssl \
openssl-dev \ openssl-dev \
linux-headers \ linux-headers \
python3 \ python2 \
rrdtool rrdtool
RUN git clone https://github.com/cherokee/webserver.git . && \ RUN git clone https://github.com/cherokee/webserver.git . && \
libtoolize --force && \ libtoolize --force && \
./autogen.sh --prefix=/usr/local/share/cherokee && \ ./autogen.sh --prefix=/usr/local/share/cherokee && \
./configure --prefix=/usr/local/share/cherokee && \ ./configure CFLAGS="-static" --prefix=/usr/local/share/cherokee && \
make && make install && \ make LDFLAGS="-all-static" && make install && \
echo "<p style='text-align:center'>Built from $(git rev-parse --short HEAD) on $(date)</p>" > ./version.txt && \ echo "<p style='text-align:center'>Built from $(git rev-parse --short HEAD) on $(date)</p>" > ./version.txt && \
apk del \ apk del \
alpine-sdk \ alpine-sdk \