improved Docker image build

This commit is contained in:
2020-03-15 14:31:48 +00:00
parent 5e9eaba794
commit 2b71048b65
2 changed files with 7 additions and 1 deletions

6
build_docker_image.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
set -e
python3 setup.py bdist_wheel
cp docker/Dockerfile dist/Dockerfile
docker build dist --tag alpine:md2html

View File

@@ -1,7 +1,7 @@
FROM alpine:latest FROM alpine:latest
MAINTAINER Oggioni Walter <oggioni.walter@gmail.com> MAINTAINER Oggioni Walter <oggioni.walter@gmail.com>
RUN apk update RUN apk update
RUN apk add python3 uwsgi uwsgi-python3 RUN apk add python3 uwsgi uwsgi-python3 graphviz
RUN mkdir /srv/http RUN mkdir /srv/http
VOLUME /srv/http VOLUME /srv/http
WORKDIR /srv/http WORKDIR /srv/http