Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
pch18 authored Jun 24, 2019
1 parent c4bf4d1 commit 3b5c754
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
FROM centos:7
MAINTAINER pch18.cn

#更新系统
RUN yum -y update \
&& yum -y install wget openssh-server

#设置entrypoint和letsencrypt映射到www文件夹下持久化
COPY entrypoint.sh /entrypoint.sh
RUN mkdir -p /www/letsencrypt \
Expand All @@ -15,8 +11,14 @@ RUN mkdir -p /www/letsencrypt \
&& chmod +x /entrypoint.sh \
&& mkdir /www/wwwroot

WORKDIR /www/wwwroot
#更新系统 安装依赖 安装宝塔面板
RUN yum -y update \
&& yum -y install wget openssh-server \
cd /home \
&& wget -O install.sh http://download.bt.cn/install/install_6.0.sh \
&& echo y | bash install.sh

WORKDIR /www/wwwroot
CMD /entrypoint.sh
EXPOSE 8888 888 21 20 443 80

Expand Down

0 comments on commit 3b5c754

Please sign in to comment.