diff --git a/Dockerfile_samba b/Dockerfile_samba index 58bac7f..0efd659 100644 --- a/Dockerfile_samba +++ b/Dockerfile_samba @@ -44,6 +44,7 @@ RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.n && ln -s /var/www/machete/bin/smbpwd.sh /usr/bin/smbpwd EXPOSE 80/tcp +EXPOSE 445/tcp ENTRYPOINT ["/var/www/machete/docker-entrypoint.sh"] # 默认使用导航站皮肤:manual CMD ["manual"] \ No newline at end of file diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index ffd342c..89a71f0 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -10,6 +10,7 @@ echo "Theme chosed [${theme}]." cd /var/www/machete/runtime/ rm -f custom_config.json cp "../conf/custom_config_${theme}.json" ./custom_config.json +chown apache:apache custom_config.json ## 启动samba if [ -e /usr/sbin/smbd ]; then diff --git a/docker_build.sh b/docker_build.sh index 2715d4a..d887e9c 100755 --- a/docker_build.sh +++ b/docker_build.sh @@ -7,4 +7,4 @@ docker rmi filesite/machete docker build --no-cache -t filesite/machete -f ./Dockerfile . ## build filesite/machete:samba -docker build --no-cache -t filesite/machete:samba -f ./Dockerfile_samba . \ No newline at end of file +docker build --no-cache -t filesite/machete:samba -f ./Dockerfile_samba .