mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-21 13:23:03 +01:00
* refactor: remove unused default timeout * feat: add persistent storage Allows you to save the state to a file and load it upon restarting the app to restore the previous state. * chore: upgrade to go 1.18 * use tinykv with generics * build: add "-buildvcs=false" flag Git is not available in golang:1.18-alpine image
18 lines
420 B
Docker
18 lines
420 B
Docker
FROM golang:1.18-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 -buildvcs=false -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" ] |