Skip to content

Instantly share code, notes, and snippets.

@chr-fritz
Created September 19, 2017 19:41
Show Gist options
  • Save chr-fritz/0081aea64484987f3795b0748d998e5d to your computer and use it in GitHub Desktop.
Save chr-fritz/0081aea64484987f3795b0748d998e5d to your computer and use it in GitHub Desktop.
esh/dockerfile
FROM openjdk:8-jre-alpine
ENV DEBUG_PORT=5005 HTTPS_PORT=8443 HTTP_PORT=8080
WORKDIR /opt/esh/runtime/concierge
ADD /target/smarthome-packaging-sample-*.zip /tmp/
RUN apk add --update unzip \
&& mkdir -p /opt/esh/conf/services \
&& unzip /tmp/smarthome-packaging-sample-*.zip -d /opt/esh \
&& chmod +x /opt/esh/runtime/concierge/start.sh \
&& rm -f /tmp/smarthome-packaging-sample-*.zip \
&& apk del wget \
&& rm -rf /var/cache/apk/*
EXPOSE 5005 8080
ENTRYPOINT exec /opt/esh/runtime/concierge/start.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment