mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-21 13:23:03 +01:00
Changed image to work
This commit is contained in:
18
Dockerfile
18
Dockerfile
@@ -1,7 +1,13 @@
|
||||
FROM golang:1.15.3-alpine AS build
|
||||
WORKDIR /src
|
||||
COPY . .
|
||||
RUN go build -o ondemand-service .
|
||||
FROM scratch AS bin
|
||||
COPY --from=build /src/ondemand-service /
|
||||
ENTRYPOINT [ "/ondemand-service" ]
|
||||
|
||||
ENV APP_NAME ondemand-service
|
||||
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" ]
|
||||
Reference in New Issue
Block a user