chore: refactor Dockerfile directory creation and ownership commands

- Change the directory creation and ownership commands in the Dockerfile

Signed-off-by: appleboy <appleboy.tw@gmail.com>
This commit is contained in:
appleboy 2023-12-24 20:11:08 +08:00
parent 7df424cbf1
commit a9c0fd3bbd
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -23,8 +23,8 @@ RUN addgroup \
-G deploy \
deploy
RUN mkdir -p /home/deploy
RUN chown deploy:deploy /home/deploy
RUN mkdir -p /home/deploy && \
chown deploy:deploy /home/deploy
# deploy:deploy
USER 1000:1000