Skip to content

Commit

Permalink
feat/change config
Browse files Browse the repository at this point in the history
  • Loading branch information
freestylefly committed May 26, 2024
1 parent 4103d51 commit aaac7d2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docker/nacos/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ FROM nacos/nacos-server
# author
MAINTAINER canghe

# 创建目标路径并设置权限
RUN mkdir -p /home/nacos/conf && chown -R nacos:nacos /home/nacos/conf
# 使用root用户执行命令
USER root

# 创建目标路径
RUN mkdir -p /home/nacos/conf

# 复制conf文件到路径
COPY ./conf/application.properties /home/nacos/conf/application.properties

0 comments on commit aaac7d2

Please sign in to comment.