Skip to content

Commit c0391d2

Browse files
committed
Dockerfile: do not run as root
This switches off the warning ************************************************************ You are running fabio as root without the '-insecure' flag This will stop working with fabio 1.7! ************************************************************ and makes all of us feel better :-) See fabiolb#369 NOTE In my limited tests it just works (using the tutorial https://learn.hashicorp.com/tutorials/nomad/load-balancing-fabio?in=nomad/load-balancing and stopping before section "Place Nomad client nodes behind AWS load balancer"), but since I am learning Nomad/Consul/Fabio, I might be missing something.
1 parent bf654ba commit c0391d2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,7 @@ RUN apk update && apk add --no-cache ca-certificates
1818
COPY --from=build /src/fabio /usr/bin
1919
ADD fabio.properties /etc/fabio/fabio.properties
2020
EXPOSE 9998 9999
21+
22+
USER 1001
2123
ENTRYPOINT ["/usr/bin/fabio"]
2224
CMD ["-cfg", "/etc/fabio/fabio.properties"]

0 commit comments

Comments
 (0)