Files
sablier/Dockerfile
Alexis Couvreur 98023a853a feat(config): add --configFile argument to specify custom config file
It will also look by default to `/etc/sablier/` then `$XDG_CONFIG_HOME` then `$HOME/.config/` and then `.`.

Closes #91
2022-11-11 17:00:35 -05:00

24 lines
377 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* /etc/sablier/sablier
EXPOSE 10000
ENTRYPOINT [ "/etc/sablier/sablier" ]
CMD [ "start", "--provider.name=docker"]