Skip to content

Commit

Permalink
fix(filesystem): use correct chown to allow usage as non root
Browse files Browse the repository at this point in the history
  • Loading branch information
buehler committed Jan 3, 2022
1 parent 426c7b1 commit b44e946
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ ENV BUILD_VERSION=${BUILD_VERSION}
COPY --from=build /etc/passwd /etc/group /etc/
COPY --from=build /go/bin/app /app/app

RUN chown -R appuser:appuser /app

USER appuser:appuser

ENTRYPOINT ["/app/app"]

0 comments on commit b44e946

Please sign in to comment.