mirror of
https://github.com/luzifer-docker/mdwiki.git
synced 2024-12-20 12:11:17 +00:00
22 lines
530 B
Docker
22 lines
530 B
Docker
FROM python:3.6-alpine
|
|
|
|
ENV MDWIKI_VERSION=0.6.2
|
|
|
|
RUN set -ex \
|
|
&& apk --no-cache add bash curl unzip \
|
|
&& mkdir -p /usr/src/mdwiki \
|
|
&& curl -sSfLo /tmp/mdwiki.zip "https://github.com/Dynalon/mdwiki/releases/download/${MDWIKI_VERSION}/mdwiki-${MDWIKI_VERSION}.zip" \
|
|
&& unzip -j -d /usr/src/mdwiki /tmp/mdwiki.zip \
|
|
&& rm /tmp/mdwiki.zip \
|
|
&& apk --no-cache del curl unzip \
|
|
&& rm -rf /var/cache/apk/*
|
|
|
|
COPY docker-entrypoint.sh /
|
|
|
|
VOLUME /data
|
|
WORKDIR /data
|
|
|
|
EXPOSE 80
|
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
|
CMD ["serve"]
|