-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
64 lines (55 loc) · 2.34 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# ========================================================================
# SchemaCrawler
# http://www.schemacrawler.com
# Copyright (c) 2000-2025, Sualeh Fatehi <sualeh@hotmail.com>.
# All rights reserved.
# ------------------------------------------------------------------------
#
# SchemaCrawler is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# SchemaCrawler and the accompanying materials are made available under
# the terms of the Eclipse Public License v1.0, GNU General Public License
# v3 or GNU Lesser General Public License v3.
#
# You may elect to redistribute this code under any of these licenses.
#
# The Eclipse Public License is available at:
# http://www.eclipse.org/legal/epl-v10.html
#
# The GNU General Public License v3 and the GNU Lesser General Public
# License v3 are available at:
# http://www.gnu.org/licenses/
#
# ========================================================================
FROM eclipse-temurin:21-jdk-alpine
ARG SCHEMACRAWLER_VERSION=16.25.2
ARG SCHEMACRAWLER_WEBAPP_VERSION=16.25.2-3
LABEL \
"maintainer"="Sualeh Fatehi <sualeh@hotmail.com>" \
"org.opencontainers.image.authors"="Sualeh Fatehi <sualeh@hotmail.com>" \
"org.opencontainers.image.title"="SchemaCrawler Web Application" \
"org.opencontainers.image.description"="Free database schema discovery and comprehension tool" \
"org.opencontainers.image.url"="https://www.schemacrawler.com/" \
"org.opencontainers.image.source"="https://github.com/schemacrawler/SchemaCrawler-Web-Application" \
"org.opencontainers.image.vendor"="SchemaCrawler" \
"org.opencontainers.image.license"="(GPL-3.0 OR OR LGPL-3.0+ EPL-1.0)"
# Install Graphviz as root user
RUN \
apk add --update --no-cache \
bash \
bash-completion \
graphviz \
ttf-freefont
# Copy SchemaCrawler Web Application files for the current user
COPY \
./target/schemacrawler-webapp-${SCHEMACRAWLER_WEBAPP_VERSION}.jar \
schemacrawler-webapp.jar
# Expose the port the application will run on
EXPOSE 8080
# Run the web-application. Define default port and java options as environment variables
ENV JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom"
ENV PORT=8080
# Default command to run the application
ENTRYPOINT java $JAVA_OPTS -Dserver.port=$PORT -jar schemacrawler-webapp.jar