Browse Source

add EXPOSE port for samba

master
filesite 2 years ago
parent
commit
ddc8265319
  1. 1
      Dockerfile_samba
  2. 1
      docker-entrypoint.sh

1
Dockerfile_samba

@ -44,6 +44,7 @@ RUN yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.n @@ -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"]

1
docker-entrypoint.sh

@ -10,6 +10,7 @@ echo "Theme chosed [${theme}]." @@ -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

Loading…
Cancel
Save