123456789101112131415161718 |
- FROM centos:7
- WORKDIR /opt
- ENV LANG=en_US.utf8
- COPY deploy/docker/entrypoint.sh .
- COPY build/ /usr/share/nginx/html/
- COPY server/config.yaml /usr/share/nginx/html/config.yaml
- COPY web/.docker-compose/nginx/conf.d/nginx.conf /etc/nginx/conf.d/nginx.conf
- RUN set -ex \
- && echo "LANG=en_US.utf8" > /etc/locale.conf \
- && echo "net.core.somaxconn = 1024" >> /etc/sysctl.conf \
- && echo "vm.overcommit_memory = 1" >> /etc/sysctl.conf \
- && yum -y install epel-release \
- && yum -y localinstall http://mirrors.ustc.edu.cn/mysql-repo/mysql57-community-release-el7.rpm \
- && yum -y install mysql-community-server git redis nginx go npm --nogpgcheck && chmod +x ./entrypoint.sh \
- && npm install -g yarn && go env -w GO111MODULE=on && go env -w GOPROXY=https://goproxy.cn,direct \
- && echo "start" > /dev/null
- EXPOSE 80
- ENTRYPOINT ["./entrypoint.sh"]
|