Files
gocast/Dockerfile
Mayuresh Gaitonde 5ac02c373b dockerfile fix
2021-10-18 18:16:22 -07:00

23 lines
486 B
Docker

FROM golang:1.14-alpine as builder
RUN apk update && \
apk upgrade && \
apk add --no-cache git && \
apk add make
RUN mkdir -p /go/src/github.com/mayuresh82/gocast
COPY . /go/src/github.com/mayuresh82/gocast
WORKDIR /go/src/github.com/mayuresh82/gocast
RUN make
FROM alpine:latest
RUN apk --no-cache add ca-certificates bash iptables netcat-openbsd sudo
WORKDIR /root/
COPY --from=builder /go/src/github.com/mayuresh82/gocast .
EXPOSE 8080/tcp
ENTRYPOINT ["./gocast"]