deprecated_overflow_gateway.../Dockerfile

34 lines
986 B
Docker
Raw Normal View History

2017-09-07 12:43:27 +00:00
FROM alpine:latest
ENV APP_VERSION=1.0.0 \
2017-09-07 12:48:56 +00:00
APP_HOME=/service \
APP_NAME=overflow_gateway_web \
APP_CONF_PATH="/opt/conf" \
PATH="$PATH:/opt/bin"
2017-09-07 12:43:27 +00:00
ADD dist/${APP_NAME} ${APP_HOME}/
2017-09-07 12:48:56 +00:00
ADD _docker/bin/*.sh /opt/bin/
RUN apk add --no-cache curl \
&& chmod +x /opt/bin/*.sh
ENV TINI_VERSION='0.15.0' \
TINI_SHA='4007655082f573603c02bc1d2137443c8e153af047ffd088d02ccc01e6f06170'
2017-09-07 12:43:27 +00:00
2017-09-07 12:48:56 +00:00
# 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 -
WORKDIR ${APP_HOME}
VOLUME ${APP_CONF_PATH}
2017-09-07 12:43:27 +00:00
EXPOSE 80 443
2017-09-07 12:48:56 +00:00
ENTRYPOINT ["/bin/tini", "--"]
CMD ["docker-entrypoint.sh"]
2017-09-07 12:43:27 +00:00
# docker build -f Dockerfile -t docker.loafle.net/overflow/overflow_service_websocket:1.0.0-alpine .
# docker run -d -p 18081:80 -t docker.loafle.net/overflow/overflow_service_websocket:1.0.0-alpine