mirror of
https://github.com/mpolden/echoip.git
synced 2025-01-26 09:55:02 +01:00
commit
7f538ca24b
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@ -0,0 +1,15 @@
|
||||
# Compile
|
||||
FROM golang:1.11-alpine AS build
|
||||
ADD . /go/src/github.com/mpolden/echoip
|
||||
WORKDIR /go/src/github.com/mpolden/echoip
|
||||
RUN apk --update add git gcc musl-dev
|
||||
ENV GO111MODULE=on
|
||||
RUN go get -d -v .
|
||||
RUN go install ./...
|
||||
|
||||
# Run
|
||||
FROM alpine
|
||||
RUN mkdir -p /opt/
|
||||
COPY --from=build /go/bin/echoip /opt/
|
||||
WORKDIR /opt/
|
||||
ENTRYPOINT ["/opt/echoip"]
|
Loading…
x
Reference in New Issue
Block a user