mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-21 13:23:03 +01:00
Defaults with docker swarm support for retro compatibiliy. You can add --swarmMode=false to deactivate it. Closes #4
12 lines
272 B
Docker
12 lines
272 B
Docker
FROM golang:1.17-alpine AS build
|
|
|
|
ENV PORT 10000
|
|
|
|
COPY . /go/src/ondemand-service
|
|
WORKDIR /go/src/ondemand-service
|
|
|
|
RUN go build -o /go/bin/ondemand-service
|
|
|
|
FROM alpine
|
|
COPY --from=build /go/bin/ondemand-service /go/bin/ondemand-service
|
|
CMD [ "/go/bin/ondemand-service" ] |