-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af188c7
commit 56faa0a
Showing
1 changed file
with
19 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
FROM golang:1.16.3-alpine3.13 as builder | ||
RUN apk add --update make && apk add --update openssl | ||
RUN apk add --update bash | ||
RUN bash --version | ||
RUN bash | ||
RUN mkdir -p /go/src /go/bin && chmod -R 777 /go | ||
ENV GOPATH /go | ||
ENV PATH /go/bin:$PATH | ||
ARG VERSION | ||
ENV VERSION=$VERSION | ||
RUN echo $VERSION | ||
WORKDIR /app | ||
COPY . . | ||
RUN make | ||
|
||
FROM alpine:latest | ||
WORKDIR /app | ||
COPY --from=builder /go/bin/eps /app/eps | ||
ENTRYPOINT ["./eps"] | ||
FROM golang:1.16.3-alpine3.13 as builder | ||
RUN apk add --update make && apk add --update openssl | ||
RUN apk add --update bash | ||
RUN bash --version | ||
RUN bash | ||
RUN mkdir -p /go/src /go/bin && chmod -R 777 /go | ||
ENV GOPATH /go | ||
ENV PATH /go/bin:$PATH | ||
ARG VERSION | ||
ENV VERSION=$VERSION | ||
RUN echo $VERSION | ||
WORKDIR /app | ||
COPY . . | ||
RUN make | ||
|
||
FROM alpine:latest | ||
WORKDIR /app | ||
COPY --from=builder /go/bin/eps /app/eps | ||
ENTRYPOINT ["./eps"] |