Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Dockerfile - github.com/mpolden/echoip.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3c2e089e42e9567104e59378ddf371b781058f56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Build
FROM golang:1.13-buster AS build
WORKDIR /go/src/github.com/mpolden/echoip
COPY . .
# Must build without cgo because libc is unavailable in runtime image
ENV GO111MODULE=on CGO_ENABLED=0
RUN make

# Run
FROM scratch
EXPOSE 8080
COPY --from=build \
     /go/bin/echoip \
     /go/src/github.com/mpolden/echoip/index.html \
     /opt/echoip/
WORKDIR /opt/echoip
ENTRYPOINT ["/opt/echoip/echoip"]