~dricottone/docker-moinmoin19

ref: d09397e5d0c7f12fa603df394d6b8da9718c3c44 docker-moinmoin19/Dockerfile -rw-r--r-- 752 bytes
d09397e5Dominic Ricottone Minor cleanup 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# NOTE: Alpine Linux removed uwsgi-python in v3.11, so using v3.10 forever
FROM alpine:3.10

RUN apk add python uwsgi uwsgi-python
RUN addgroup -S -g 82 www-data \
    && adduser -S -u 82 -D -h /var/www -s /sbin/nologin www-data

# install moinmoin from distribution
RUN mkdir /var/moin
COPY --chown=www-data:www-data build/moin-1.9.11 /var/moin/install
RUN cd /var/moin/install && python setup.py install

# setup wiki
RUN cp -r /usr/share/moin/server /var/moin/webroot/
RUN cp -r /usr/share/moin/underlay /var/moin/webroot/
RUN chown www-data:www-data /var/moin/webroot -R
COPY --chown=www-data:www-data moinmoin/* /var/moin/webroot/

EXPOSE 9000
WORKDIR /var/moin/webroot
ENTRYPOINT ["/usr/sbin/uwsgi"]
CMD ["--ini", "/var/moin/webroot/uwsgi.ini"]