-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathDockerfile
28 lines (22 loc) · 986 Bytes
/
Dockerfile
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
FROM debian:stretch-slim
LABEL maintainer "Kayvan Sylvan <[email protected]>"
ENV PG_VERSION 0.9.2-beta1
ADD https://codeload.github.com/pgmodeler/pgmodeler/tar.gz/v${PG_VERSION} /usr/local/src/
WORKDIR /usr/local/src/
RUN if [ ! -d pgmodeler-${PG_VERSION} ]; then tar xvzf v${PG_VERSION}; fi \
&& cd pgmodeler-${PG_VERSION} \
&& BUILD_PKGS="make g++ qt5-qmake libxml2-dev \
libpq-dev pkg-config libqt5svg5-dev" \
&& RUNTIME_PKGS="qt5-default libqt5svg5 postgresql-server-dev-9.6" \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive \
apt-get -y install ${BUILD_PKGS} ${RUNTIME_PKGS} \
&& qmake pgmodeler.pro \
&& make && make install \
&& cd .. \
&& apt-get remove --purge -y $BUILD_PKGS \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /usr/local/lib/pgmodeler/plugins \
&& chmod 777 /usr/local/lib/pgmodeler/plugins
RUN apt-get update && apt-get install -y x11vnc xvfb net-tools novnc xdotool git
ENTRYPOINT ["/usr/local/bin/pgmodeler"]