FROM openjdk:11 MAINTAINER Data In Motion Consulting GmbH ENV GECKO_WORK /gecko-home ENV GECKO_VERSION 2.0.0 RUN mkdir -p /opt/gecko/ && mkdir -p /opt/gecko/logs && mkdir -p /tmp COPY ./ /opt/gecko/ RUN useradd -r -u 200 -m -c "gecko account" -d ${GECKO_WORK} -s /bin/false gecko RUN chown -R gecko /opt/gecko && chmod u+rwx -R /opt/gecko && chown -R gecko /tmp && chmod -R u+rw /tmp RUN cd /opt/gecko VOLUME ${GECKO_WORK} # REST port 8080, gogo telnet 7315 EXPOSE 8080 8081 8090 7315 WORKDIR /opt/gecko USER gecko CMD ["./bin/gecko.sh", "-data", "/gecko-home"]