File: Dockerfile

package info (click to toggle)
postgresql-autodoc 1.41%2B20200921-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 228 kB
  • sloc: perl: 1,406; sh: 153; sql: 103; makefile: 69
file content (29 lines) | stat: -rw-r--r-- 528 bytes parent folder | download
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}