Remove Dockerfile
This commit is contained in:
parent
604f9d07db
commit
fb909ba592
22
Dockerfile
22
Dockerfile
|
@ -1,22 +0,0 @@
|
||||||
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
|
|
||||||
COPY bangs.yml /bangs.yml
|
|
||||||
|
|
||||||
USER 1000
|
|
||||||
|
|
||||||
ENTRYPOINT ["/evaluator"]
|
|
||||||
|
|
||||||
EXPOSE 8081
|
|
Loading…
Reference in a new issue