Skip to content

Commit

Permalink
adding Dockerfile.local for faster local development
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Murdock committed Oct 8, 2018
1 parent 4f7b42c commit 73e19fd
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Dockerfile.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM golang:alpine as builder
MAINTAINER Jack Murdock <[email protected]>

# build the binary
WORKDIR /go/src
COPY src/ /go/src/

RUN go build -o caduceus_linux_amd64 caduceus

EXPOSE 6000 6001 6002
RUN mkdir -p /etc/caduceus
VOLUME /etc/caduceus

# the actual image
FROM alpine:latest
RUN apk --no-cache add ca-certificates
RUN mkdir -p /etc/caduceus
VOLUME /etc/caduceus
WORKDIR /root/
COPY --from=builder /go/src/caduceus_linux_amd64 .
ENTRYPOINT ["./caduceus_linux_amd64"]

0 comments on commit 73e19fd

Please sign in to comment.