Skip to content

Commit

Permalink
fixup docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
BeryJu committed Apr 21, 2023
1 parent 4572e34 commit b3f51d5
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
FROM golang:latest AS builder
WORKDIR $GOPATH/src/github.com/BeryJu/saml-test-sp
COPY . .
ENV CGO_ENABLED=0
ENV GOOS=linux
ENV GOARCH=amd64
RUN go build -v -o /go/bin/saml-test-sp

FROM alpine
COPY --from=builder /go/bin/saml-test-sp /saml-test-sp
FROM docker.io/library/alpine:3.17.3
RUN apk add --no-cache ca-certificates
COPY saml-test-sp /
EXPOSE 9009
WORKDIR /web-root
ENV SP_BIND=0.0.0.0:9009
HEALTHCHECK --interval=5s --start-period=1s CMD [ "wget", "--spider", "http://localhost:9009/health" ]
CMD [ "/saml-test-sp" ]
ENTRYPOINT [ "/saml-test-sp" ]

0 comments on commit b3f51d5

Please sign in to comment.