Rainbond/hack/contrib/docker/gateway/Dockerfile
2020-11-25 16:54:51 +08:00

15 lines
501 B
Docker

FROM rainbond/openresty:1.15.8.2
RUN apk add --no-cache bash net-tools curl tzdata && \
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone && \
date && apk del --no-cache tzdata
ADD . /run
ENV NGINX_CONFIG_TMPL=/run/nginxtmp
ENV NGINX_CUSTOM_CONFIG=/run/nginx/conf
ENV RELEASE_DESC=${RELEASE_DESC}
ENV OPENRESTY_HOME=/usr/local/openresty
ENV PATH="${PATH}:${OPENRESTY_HOME}/nginx/sbin"
EXPOSE 8080
ENTRYPOINT ["/run/entrypoint.sh"]