Skip to content

Commit

Permalink
Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
sealbro committed May 23, 2022
1 parent 634f1f0 commit 1f96260
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
FROM golang:alpine as builder
FROM golang:1.18 as builder

WORKDIR /build
WORKDIR /src
COPY . .

RUN go build
RUN CGO_ENABLED=0 go build -o /bin/sealway-strava

FROM gcr.io/distroless/static as runtime

COPY --from=builder /build/sealway-strava .
COPY --from=builder /bin/sealway-strava /

EXPOSE 8080

ENTRYPOINT /sealway-strava
CMD ["/sealway-strava"]

0 comments on commit 1f96260

Please sign in to comment.