feat: merge service repository into Sablier

Add plugins folder to integrate with multiple reverse proxies

The project is now released as 'Sablier'
This commit is contained in:
Alexis Couvreur
2022-09-30 14:37:18 +00:00
parent ad4e9ffb8c
commit 551a146d94
41 changed files with 185 additions and 469 deletions

View File

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