bangs/Dockerfile

23 lines
430 B
Docker
Raw Normal View History

2019-05-26 22:36:46 +02:00
FROM golang:alpine as builder
WORKDIR /go/src/git.sbruder.de/simon/bangs/evaluator/
COPY evaluator/evaluator.go .
RUN apk add --no-cache git upx
RUN go get -v \
&& CGO_ENABLED=0 go build -v -ldflags="-s -w" \
&& upx --ultra-brute evaluator
FROM scratch
COPY --from=builder /go/src/git.sbruder.de/simon/bangs/evaluator/evaluator /evaluator
2021-01-04 22:10:39 +01:00
COPY bangs.yml /bangs.yml
2019-05-26 22:36:46 +02:00
USER 1000
ENTRYPOINT ["/evaluator"]
EXPOSE 8081