mirror of
https://github.com/mpolden/echoip.git
synced 2024-11-10 15:37:24 +01:00
Add Dockerfile
This commit is contained in:
parent
823af68923
commit
1171909046
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@ -0,0 +1,14 @@
|
||||
# Compile
|
||||
FROM golang:alpine AS build
|
||||
ADD . /go/src/github.com/mpolden/ipd
|
||||
WORKDIR /go/src/github.com/mpolden/ipd
|
||||
RUN apk --update add git
|
||||
RUN go get -d -v ./...
|
||||
RUN go install ./...
|
||||
|
||||
# Run
|
||||
FROM alpine
|
||||
RUN mkdir -p /opt/
|
||||
COPY --from=build /go/bin/ipd /opt/
|
||||
WORKDIR /opt/
|
||||
ENTRYPOINT ["/opt/ipd"]
|
Loading…
Reference in New Issue
Block a user