initial commit
This commit is contained in:
commit
5984ee2119
19
Dockerfile
Normal file
19
Dockerfile
Normal file
@ -0,0 +1,19 @@
|
||||
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"]
|
10
Makefile
Normal file
10
Makefile
Normal file
@ -0,0 +1,10 @@
|
||||
DOCKEROPTS :=
|
||||
TAG := latest
|
||||
|
||||
.PHONY: image
|
||||
image:
|
||||
docker build -t dockermirror:5000/dpedu/moin:$(TAG) $(DOCKEROPTS) .
|
||||
|
||||
.PHONY: push
|
||||
push: image
|
||||
docker push dockermirror:5000/dpedu/moin:$(TAG)
|
Loading…
Reference in New Issue
Block a user