Skip to content

Commit

Permalink
Merge pull request #5 from kengwang/main
Browse files Browse the repository at this point in the history
chore: Uncomment EXPOSE (Fix #4)
  • Loading branch information
Randark-JMT authored Sep 20, 2024
2 parents 60d614d + d894b34 commit fdb8059
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions web-java-openjdk8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
2 changes: 1 addition & 1 deletion web-lamp-php80/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ RUN sh -c 'mysqld_safe &' \
# 设置shell的工作目录
WORKDIR /var/www/html

# # EXPOSE 80
EXPOSE 80

# 设置nginx日志保存目录
VOLUME ["/var/log/nginx"]
Expand Down

0 comments on commit fdb8059

Please sign in to comment.