Christopher Lott (cl778h) | 978dbcf | 2017-08-23 18:27:19 -0400 | [diff] [blame] | 1 | # Large image |
| 2 | # FROM openjdk:8-jdk |
Christopher Lott (cl778h) | 6a4a349 | 2017-10-10 15:54:38 -0400 | [diff] [blame] | 3 | # Tiny image; it includes java and nc |
Christopher Lott (cl778h) | 978dbcf | 2017-08-23 18:27:19 -0400 | [diff] [blame] | 4 | FROM frolvlad/alpine-oraclejdk8:slim |
| 5 | |
| 6 | # Arguments are supplied by build script; |
| 7 | # the defaults below only support testing |
| 8 | ARG WMS_JAR=build/widget-ms.jar |
Christopher Lott (cl778h) | 978dbcf | 2017-08-23 18:27:19 -0400 | [diff] [blame] | 9 | # Onejar |
| 10 | COPY ${WMS_JAR} /app.jar |
| 11 | RUN sh -c 'touch /app.jar' |
Christopher Lott (cl778h) | 6a4a349 | 2017-10-10 15:54:38 -0400 | [diff] [blame] | 12 | |
Christopher Lott (cl778h) | 6a4a349 | 2017-10-10 15:54:38 -0400 | [diff] [blame] | 13 | # Launch script |
st782s | 21a8761 | 2018-01-30 17:29:36 -0500 | [diff] [blame] | 14 | COPY start-wms.sh / |
Christopher Lott (cl778h) | 6a4a349 | 2017-10-10 15:54:38 -0400 | [diff] [blame] | 15 | |
| 16 | # Define default command |
st782s | 21a8761 | 2018-01-30 17:29:36 -0500 | [diff] [blame] | 17 | CMD /start-wms.sh |