chore(): Adds Dockerfile to the mix
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
95c29b1f4b
commit
4fbddcf7d6
1 changed files with 15 additions and 0 deletions
15
Dockerfile
Normal file
15
Dockerfile
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
FROM docker.io/golang:alpine AS builder
|
||||||
|
|
||||||
|
WORKDIR /go/src/sidoxy
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN go get && \
|
||||||
|
mkdir build && \
|
||||||
|
go build -o build/sidoxy
|
||||||
|
|
||||||
|
FROM docker.io/alpine:latest
|
||||||
|
|
||||||
|
COPY --from=builder /go/src/sidoxy/build/sidoxy ./
|
||||||
|
|
||||||
|
CMD ["./sidoxy"]
|
Loading…
Reference in a new issue