-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding Dockerfile.local for faster local development
- Loading branch information
Jack Murdock
committed
Oct 8, 2018
1 parent
11f1965
commit f3206c9
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |