1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
# USAGE:
# docker build . -t autodoc
# docker run --mount src=`pwd`,target=/app,type=bind --network=host --env-file ./env -v $pwd:/app autodoc
FROM ubuntu:18.04
WORKDIR /app
RUN apt-get update
RUN apt-get install -y libdbi-perl \
libhtml-template-perl libterm-readkey-perl \
libdbd-pg-perl make
COPY . .
RUN make install
ENV DATABASE=app \
HOST=localhost \
PORT=port \
USER=app \
PASSWORD=password
CMD postgresql_autodoc -d ${DATABASE} \
-h ${HOST} \
-p ${PORT} \
-u ${USER} \
--password=${PASSWORD}
|