2018-04-17 06:20:04 +00:00
|
|
|
# iron/go:dev is the alpine image with the go tools added
|
2018-05-19 19:52:57 +00:00
|
|
|
FROM golang
|
2018-04-17 06:20:04 +00:00
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
# Set an env var that matches your github repo name
|
2018-05-01 20:58:20 +00:00
|
|
|
ENV SRC_DIR=/go/src/github.com/Ice3man543/subfinder/
|
2018-04-17 06:20:04 +00:00
|
|
|
|
|
|
|
# Add the source code:
|
|
|
|
ADD . $SRC_DIR
|
|
|
|
|
|
|
|
# Build it:
|
2018-05-11 20:36:45 +00:00
|
|
|
RUN cd $SRC_DIR; go get; go build -o main; cp main /app/
|
2018-04-17 06:20:04 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["./main"]
|
|
|
|
CMD ["-h"]
|