mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-27 23:46:36 +01:00
18 lines
404 B
Docker
18 lines
404 B
Docker
FROM golang:1.17-alpine AS build
|
|
|
|
ENV CGO_ENABLED=0
|
|
ENV PORT 10000
|
|
|
|
COPY . /go/src/ondemand-service
|
|
WORKDIR /go/src/ondemand-service
|
|
|
|
ARG TARGETOS
|
|
ARG TARGETARCH
|
|
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o /go/bin/ondemand-service
|
|
|
|
FROM alpine
|
|
EXPOSE 10000
|
|
COPY --from=build /go/bin/ondemand-service /go/bin/ondemand-service
|
|
|
|
ENTRYPOINT [ "/go/bin/ondemand-service" ]
|
|
CMD [ "--swarmMode=true" ] |