docker-moin/Dockerfile
2021-05-05 17:08:21 -07:00

20 lines
573 B
Docker

FROM ubuntu:focal
RUN apt-get update && \
apt-get install -y wget python-setuptools supervisor && \
rm -rf /var/lib/apt/lists/*
RUN wget -qO /tmp/moin.tgz https://github.com/moinwiki/moin-1.9/releases/download/1.9.11/moin-1.9.11.tar.gz && \
tar zxvf /tmp/moin.tgz -C /tmp/ --strip-components=1 && \
cd /tmp && \
python2.7 setup.py install && \
rm -rf /tmp/* && \
useradd moin && \
mkdir /srv/moin && \
chown moin /srv/moin && \
chgrp moin /srv/moin
USER moin
ENTRYPOINT ["moin", "--config-dir=/srv/moin", "server", "standalone"]