Files
sablier/Dockerfile
Alexis Couvreur 551a146d94 feat: merge service repository into Sablier
Add plugins folder to integrate with multiple reverse proxies

The project is now released as 'Sablier'
2022-10-03 20:27:06 +00:00

18 lines
366 B
Docker

FROM golang:1.18-alpine AS build
ENV CGO_ENABLED=0
ENV PORT 10000
COPY . /go/src/sablier
WORKDIR /go/src/sablier
ARG TARGETOS
ARG TARGETARCH
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -buildvcs=false -o /go/bin/sablier
FROM alpine
EXPOSE 10000
COPY --from=build /go/bin/sablier /go/bin/sablier
ENTRYPOINT [ "/go/bin/sablier" ]
CMD [ "--swarmMode=true" ]