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 11f1965 commit f3206c9
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 <jack_murdock@comcast.com>

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

RUN go build -o petasos_linux_amd64 petasos

EXPOSE 6400 6401 6402 6403
RUN mkdir -p /etc/petasos
VOLUME /etc/petasos

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

0 comments on commit f3206c9

Please sign in to comment.