mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-21 13:23:03 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user