2024-01-16 22:30:28 +01:00
|
|
|
FROM alpine:latest as builder
|
|
|
|
RUN apk update && apk add --no-cache bash ca-certificates
|
|
|
|
|
2024-08-02 23:06:55 +02:00
|
|
|
RUN wget -O wikindx.tar.bz2 https://master.dl.sourceforge.net/project/wikindx/6.10.2/wikindx_6.10.2.tar.bz2
|
2024-04-12 09:17:29 +02:00
|
|
|
RUN mkdir wikindx; tar jxf wikindx.tar.bz2 -C wikindx --strip-components 1
|
2024-01-16 22:30:28 +01:00
|
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
|
|
|
|
RUN apk update && apk add --no-cache bash ca-certificates tini nginx
|
|
|
|
|
|
|
|
COPY --from=builder /wikindx /var/www/html/
|
|
|
|
RUN chown -R nginx.nginx /var/www/html/
|
|
|
|
|
|
|
|
ADD files/entryPoint.sh /entryPoint.sh
|
|
|
|
RUN chmod a+x /entryPoint.sh
|
|
|
|
|
|
|
|
ADD files/default.conf /etc/nginx/http.d/
|
|
|
|
RUN sed -i '1idaemon off;' /etc/nginx/nginx.conf
|
|
|
|
RUN chown -R nginx.nginx /etc/nginx
|
|
|
|
|
|
|
|
|
|
|
|
USER nginx
|
|
|
|
|
|
|
|
|
|
|
|
ENTRYPOINT ["/sbin/tini", "--", "/entryPoint.sh"]
|