forked from develar/mapsforge-tile-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (19 loc) · 883 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
FROM develar/java
MAINTAINER Vladimir Krivosheev <[email protected]>
WORKDIR app
COPY out/artifacts/mapsforge-tile-server.jar mapsforge-tile-server.jar
COPY out/atlases atlases
COPY dist/renderThemes renderThemes
COPY lib/*.so lib/*.dylib lib/*.so lib/*.dll lib/marlin-* lib/
ENV _JAVA_OPTIONS -Xmx768m
ENV MAX_FILE_CACHE_SIZE 8
EXPOSE 80
ENTRYPOINT ["java", "-server", "-Dfile.encoding=UTF-8", "-Djava.awt.headless=true", \
"-Xbootclasspath/a:lib/marlin-0.5.5-Unsafe.jar", \
"-XX:+UseConcMarkSweepGC", \
"-Dsun.java2d.renderer=org.marlin.pisces.PiscesRenderingEngine", "-Dsun.java2d.renderer.useRef=hard", \
"-Dorg.slf4j.simpleLogger.showLogName=false", \
"-Dio.netty.machineId=9e43d860", \
"-Djava.security.egd=file:/dev/urandom", \
"-Djava.library.path=lib", "-jar", "mapsforge-tile-server.jar", \
"-h", "0.0.0.0", "--theme", "renderThemes", "--map", "/maps"]