Files
sablier/Dockerfile
Alexis Couvreur 23f7626f6b 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.
2022-10-04 19:06:00 +00:00

24 lines
367 B
Docker

FROM golang:1.18 AS build
ENV PORT 10000
WORKDIR /go/src/sablier
COPY go.mod ./
COPY go.sum ./
RUN go mod download
COPY . /go/src/sablier
ARG TARGETOS
ARG TARGETARCH
RUN make ${TARGETOS}/${TARGETARCH}
FROM alpine
COPY --from=build /go/src/sablier/sablier* /go/bin/sablier
EXPOSE 10000
ENTRYPOINT [ "/go/bin/sablier" ]
CMD [ "start", "--provider.name=docker"]