deprecated_overflow_gateway.../Dockerfile

37 lines
1.1 KiB
Docker
Raw Normal View History

2017-09-07 12:43:27 +00:00
FROM alpine:latest
ENV APP_VERSION=1.0.0 \
2017-09-08 04:53:16 +00:00
APP_HOME=/opt \
APP_NAME=overflow_gateway_web
2017-09-07 12:43:27 +00:00
2017-09-08 04:53:16 +00:00
ENV APP_CONFIG_PATH="${APP_HOME}/config" \
APP_LOGS_PATH="${APP_HOME}/logs" \
PATH="$PATH:${APP_HOME}/bin"
ADD dist/${APP_NAME} ${APP_HOME}/bin/
ADD _docker/bin/*.sh ${APP_HOME}/bin/
2017-09-07 12:48:56 +00:00
RUN apk add --no-cache curl \
2017-09-08 04:53:16 +00:00
&& chmod +x ${APP_HOME}/bin/*.sh \
&& mkdir -p ${APP_LOGS_PATH}
2017-09-07 12:48:56 +00:00
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 -
2017-09-08 04:53:16 +00:00
VOLUME ${APP_CONFIG_PATH}
VOLUME ${APP_LOGS_PATH}
2017-09-07 12:48:56 +00:00
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