fix(docker): run container as root by default

To access the docker socket you need to be root or in the docker group.

The GID changes from one machine to the other.

For now the image will be running as root.
This commit is contained in:
Alexis Couvreur
2022-10-04 19:06:00 +00:00
parent 0045bcb494
commit 23f7626f6b

View File

@@ -16,10 +16,7 @@ RUN make ${TARGETOS}/${TARGETARCH}
FROM alpine
RUN addgroup -S sablier && adduser -S sablier -G sablier
USER sablier:sablier
COPY --from=build --chown=sablier:sablier /go/src/sablier/sablier* /go/bin/sablier
COPY --from=build /go/src/sablier/sablier* /go/bin/sablier
EXPOSE 10000