overflow_server/Dockerfile
2017-08-09 11:30:33 +09:00

25 lines
782 B
Docker

FROM openjdk:8-jdk-alpine
MAINTAINER Loafle <rnd@loafle.com>
ENV APP_FILENAME="com.loafle.overflow.overflow_server-1.0.0-SNAPSHOT.jar"
ADD docker/bin/*.sh /opt/bin/
RUN apk add --no-cache curl \
&& chmod +x /opt/bin/*.sh
ADD target/lib /service/lib
ADD target/com.loafle.overflow.overflow_server-1.0.0-SNAPSHOT.jar /service/
ENV TINI_VERSION='0.14.0' \
TINI_SHA='6c41ec7d33e857d4779f14d9c74924cab0c7973485d2972419a3b7c7620ff5fd'
# Use tini as subreaper in Docker container to adopt zombie processes
RUN curl -fsSL https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini-static-amd64 -o /bin/tini && chmod +x /bin/tini \
&& echo "$TINI_SHA /bin/tini" | sha256sum -c -
EXPOSE 50006
ENTRYPOINT ["/bin/tini", "--", "/opt/bin/docker-entrypoint.sh"]