Skip to content

Commit

Permalink
Run as the kamal-proxy user
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmcconnell committed Sep 16, 2024
1 parent 8065f92 commit 547d14e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ copy --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
copy --from=build /app/bin/kamal-proxy /usr/local/bin/
expose 80 443

run useradd kamal-proxy
run mkdir -p /home/kamal-proxy && chown kamal-proxy:kamal-proxy /home/kamal-proxy
user kamal-proxy:kamal-proxy

cmd [ "kamal-proxy", "run" ]

0 comments on commit 547d14e

Please sign in to comment.