1234567891011121314151617181920212223242526272829303132333435363738394041 |
- # build: docker build -t <registry>/<product>/<app>:<version> .
- # push : docker push <registry>/<product>/<app>:<version>
- FROM tyn.ar3qvx.com/os/svi-centos7:latest
- MAINTAINER krrish krrishdo@gmail.com
- ENV APP_NAME="evlss" \
- APP_HOME="/opt/wisecloud/cdn" \
- APP_PACKAGE_URL="dist/*.tar.gz"
- # packge location can be file、http(s)、ftp...
- # file:///tmp/file.tar.gz
- # https://svicloud.s3.amazonaws.com/evlss.tar.gz
- ## config and start files
- ADD docker/start.sh /usr/local/bin/
- ADD docker/conf /usr/local/conf/
- RUN chmod a+x /usr/local/bin/* && \
- touch /var/log/${APP_NAME}.log
- # if APP_PACKAGE_URL use http or ftp
- #RUN curl -sSL ${APP_PACKAGE_URL} | \
- # tar zxvf - -C ${APP_HOME}
-
- ADD $APP_PACKAGE_URL /tmp
- RUN cd /tmp/*release*/ && \
- echo -e "yes\n" | bash setup.sh -i -n
- WORKDIR ${APP_HOME}/${APP_NAME}
- # Port to be exposed
- EXPOSE 1935 8035 13818 19850
- # Init
- ENTRYPOINT ["tini", "--"]
- # Startup
- CMD ["start.sh"]
|