diff --git a/web-java-openjdk8/Dockerfile b/web-java-openjdk8/Dockerfile index 14e3c7b..0a47ee0 100644 --- a/web-java-openjdk8/Dockerfile +++ b/web-java-openjdk8/Dockerfile @@ -7,8 +7,8 @@ LABEL auther_template="CTF-Archives" COPY ./src /app COPY ./service/docker-entrypoint.sh /docker-entrypoint.sh -开放的端口取决于服务,一般为8080 -# EXPOSE 8080 +# 开放的端口取决于服务,默认 Demo 为8080 +EXPOSE 8080 # 指定容器入口点 ENTRYPOINT [ "/bin/bash","/docker-entrypoint.sh" ] \ No newline at end of file diff --git a/web-lamp-php80/Dockerfile b/web-lamp-php80/Dockerfile index b84dbbd..997ace9 100644 --- a/web-lamp-php80/Dockerfile +++ b/web-lamp-php80/Dockerfile @@ -47,7 +47,7 @@ RUN sh -c 'mysqld_safe &' \ # 设置shell的工作目录 WORKDIR /var/www/html -# # EXPOSE 80 +EXPOSE 80 # 设置nginx日志保存目录 VOLUME ["/var/log/nginx"]