FROM java MAINTAINER Disassembler RUN \ # Install runtime dependencies apk --no-cache add openjdk8-jre s6 ttf-dejavu xf86-video-dummy xorg-server \ # Create OS user && addgroup -S -g 8018 flsms \ && adduser -S -u 8018 -h /srv/flsms -s /bin/sh -g flsms -G flsms flsms \ # Install FrontlineSMS && wget http://download-frontlinesms.s3.amazonaws.com/frontlinesms2_unix_2.6.5.sh -O /tmp/frontlinesms2.sh \ # Hackfix for Busybox gunzip && sed -i 's/gunzip -V/echo/' /tmp/frontlinesms2.sh \ && echo -e 'o\n\nn\nSpotter\nSpotter\n11\n45\n\n\nadmin@example.com\n\n\n\n\n\n\n\n\n\n\n' | su - flsms -c 'sh /tmp/frontlinesms2.sh -c' \ # Replace Jetty port && sed -i 's/8130/8080/' /srv/flsms/frontlinesms2/launcher.properties \ # Cleanup && rm /tmp/frontlinesms2.sh COPY docker/ / VOLUME ["/srv/flsms/.frontlinesms2"] EXPOSE 8080 CMD ["s6-svscan", "/etc/services.d"]