Dockerfile 873 Bytes
Newer Older
吴贤德's avatar
吴贤德 committed
1
#################
吴贤德's avatar
吴贤德 committed
2 3
#   编译并Tag : docker build --rm -t code.dev.soooner.com:65000/hotel/front:19.10.17.1 .
#   推送 : docker push code.dev.soooner.com:65000/hotel/front:19.10.17.1
吴贤德's avatar
吴贤德 committed
4 5 6 7 8 9
#################

FROM code.dev.soooner.com:65000/base/centos:6.9-soooner

MAINTAINER from xd.5 (xpemail@163.com)

吴贤德's avatar
吴贤德 committed
10
ADD soooner_front.19.10.17.1.tar.xz /
吴贤德's avatar
吴贤德 committed
11 12 13 14 15 16

COPY entrypoint.sh /sbin

RUN chmod +x /sbin/entrypoint.sh && \
cp /soooner/nginx/init.d/nginx /etc/init.d/nginx && \
cp /soooner/redis/init.d/redis6000 /etc/init.d/redis6000 && \
吴贤德's avatar
吴贤德 committed
17 18 19 20 21
cp /soooner/sreport/init.d/sreport /etc/init.d/sreport && \
cp /soooner/sreport2/init.d/sreport2 /etc/init.d/sreport2 && \
yum install -y wget && \
yum install -y xz && \
yum clean all
吴贤德's avatar
吴贤德 committed
22 23 24

ENV FRONT_CODE=DEFAULTCODE
ENV CENTER_SERVER=api.hotel.wasu.tv
吴贤德's avatar
吴贤德 committed
25
ENV DOCKER_IMAGE_VER=19.10.17.1
吴贤德's avatar
吴贤德 committed
26 27 28 29 30 31 32

ENTRYPOINT ["entrypoint.sh"]

EXPOSE 801
EXPOSE 6000

CMD ["/bin/bash"]